Interface IPropertyShape<TDeclaringType, TPropertyType>
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Provides a strongly typed shape model for a given .NET instance property or field.
public interface IPropertyShape<TDeclaringType, TPropertyType> : IPropertyShape
Type Parameters
TDeclaringType
The declaring type of the underlying property.
TPropertyType
The property type of the underlying property.
- Inherited Members
Properties
DeclaringType
The shape of the declaring type.
IObjectTypeShape<TDeclaringType> DeclaringType { get; }
Property Value
- IObjectTypeShape<TDeclaringType>
PropertyType
The shape of the property type.
ITypeShape<TPropertyType> PropertyType { get; }
Property Value
- ITypeShape<TPropertyType>
Methods
GetGetter()
Creates a getter delegate for the property, if applicable.
Getter<TDeclaringType, TPropertyType> GetGetter()
Returns
- Getter<TDeclaringType, TPropertyType>
A getter delegate for the property.
Exceptions
- InvalidOperationException
The property has no accessible getter.
GetSetter()
Creates a setter delegate for the property, if applicable.
Setter<TDeclaringType, TPropertyType> GetSetter()
Returns
- Setter<TDeclaringType, TPropertyType>
A setter delegate for the property.
Exceptions
- InvalidOperationException
The property has no accessible setter.