Class PropertyBuildInfoExtensions
Contains useful extensions for objects of type PropertyBuildInfo.
Inherited Members
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.TypeFactory.dll
Syntax
public static class PropertyBuildInfoExtensions
Methods
| Edit this page View SourceBuildNpcPropSetterSkeleton(PropertyBuildInfo, IlBlockWithExitLabel, IlBlockWithExitLabel, Type)
Builds a skeleton for a property's setter that notifies of its value change.
Declaration
public static void BuildNpcPropSetterSkeleton(this PropertyBuildInfo prop, IlBlockWithExitLabel valueProvider, IlBlockWithExitLabel valueSetter, Type propertyType)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyBuildInfo | prop | Property for which to define the new setter with value change notification. |
| IlBlockWithExitLabel | valueProvider | Block to invoke to provide the value to the setter. |
| IlBlockWithExitLabel | valueSetter | Block to execute to insert the value into the backing field. |
| Type | propertyType | Type of the property. |
WithBackingField(PropertyBuildInfo, out FieldBuilder)
Creates a backing field for the property and configures the property's get method to read its value.
Declaration
public static PropertyBuildInfo WithBackingField(this PropertyBuildInfo builder, out FieldBuilder field)
Parameters
| Type | Name | Description |
|---|---|---|
| PropertyBuildInfo | builder | PropertyBuildInfo on which the backing field will be defined. |
| FieldBuilder | field | FieldBuilder generated that represents the backing field. |
Returns
| Type | Description |
|---|---|
| PropertyBuildInfo | The same instance as |