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

Exception which is thrown when a type does not contain the expected backing field. More...

Inheritance diagram for PeanutButter.DuckTyping.Exceptions.BackingFieldForPropertyNotFoundException:

Public Member Functions

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

Detailed Description

Exception which is thrown when a type does not contain the expected backing field.

Constructor & Destructor Documentation

◆ BackingFieldForPropertyNotFoundException()

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

Constructs an instance of the exception.

Parameters
owningTypeType which owns the property which should have a corresponding backing field
propertyNameName of the property which should be backed by a field with the same name and leading underscore

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