Show / Hide Table of Contents

Class PropertyBuildInfoExtensions

Contains useful extensions for objects of type PropertyBuildInfo.

Inheritance
object
PropertyBuildInfoExtensions
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: TheXDS.MCART.Types.Extensions
Assembly: MCART.TypeFactory.dll
Syntax
public static class PropertyBuildInfoExtensions

Methods

| Edit this page View Source

BuildNpcPropSetterSkeleton(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.

| Edit this page View Source

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 builder, enabling Fluent syntax.

  • Edit this page
  • View Source
In this article
Back to top Generated by DocFX