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

Exception thrown when the ducked property is read-only but the interface to duck to expects a read/write property. More...

Inheritance diagram for PeanutButter.DuckTyping.Exceptions.ReadOnlyPropertyException:

Public Member Functions

 ReadOnlyPropertyException (Type owningType, string propertyName)
 Constructs an instance of the exception.

Detailed Description

Exception thrown when the ducked property is read-only but the interface to duck to expects a read/write property.

Constructor & Destructor Documentation

◆ ReadOnlyPropertyException()

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

Constructs an instance of the exception.

Parameters
owningTypeType implementing read-only property
propertyNameName of the property which was expected to be writable

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