Interface IConstructorParameterShape<TArgumentState, TParameterType>
- Namespace
- PolyType.Abstractions
- Assembly
- PolyType.dll
Provides a strongly typed shape model for a given .NET constructor parameter, representing either an actual constructor parameter or a required or init-only property.
public interface IConstructorParameterShape<TArgumentState, TParameterType> : IConstructorParameterShape
Type Parameters
TArgumentState
The state type used for aggregating constructor arguments.
TParameterType
The type of the underlying constructor parameter.
- Inherited Members
Properties
DefaultValue
Gets the default value specified by the parameter, if applicable.
TParameterType? DefaultValue { get; }
Property Value
- TParameterType
ParameterType
Gets the shape of the constructor parameter type.
ITypeShape<TParameterType> ParameterType { get; }
Property Value
- ITypeShape<TParameterType>
Methods
GetSetter()
Creates a setter delegate for configuring a state object with a value for the current argument.
Setter<TArgumentState, TParameterType> GetSetter()
Returns
- Setter<TArgumentState, TParameterType>
A Setter<TDeclaringType, TPropertyType> delegate.