PeanutButter
Loading...
Searching...
No Matches
PeanutButter.DuckTyping.Exceptions.WriteOnlyPropertyException Class Reference

Exception thrown when a ducking operation expects a read/write property but the object being ducked implements a write-only property. More...

Inheritance diagram for PeanutButter.DuckTyping.Exceptions.WriteOnlyPropertyException:

Public Member Functions

 WriteOnlyPropertyException (Type owningType, string propertyName)
 Constructs a new instance of the exception.

Detailed Description

Exception thrown when a ducking operation expects a read/write property but the object being ducked implements a write-only property.

Constructor & Destructor Documentation

◆ WriteOnlyPropertyException()

PeanutButter.DuckTyping.Exceptions.WriteOnlyPropertyException.WriteOnlyPropertyException ( Type owningType,
string propertyName )

Constructs a new instance of the exception.

Parameters
owningTypeUnderlying type owning the property
propertyNameName of the write-only property

The documentation for this class was generated from the following file:
  • source/Utils/PeanutButter.DuckTyping/Exceptions/WriteOnlyPropertyException.cs