Api Sandbox WrappedPropertySet<T>
struct

WrappedPropertySet<T>

public sealed struct WrappedPropertySet<T>

Provides data about a wrapped property setter in a CodeGeneratorAttribute callback.

Type Parameters

T The expected type of the wrapped property.

Properties

Name Type Description
Value T The value the property wants to be set to.
Object Object The object whose property is being wrapped. This will be null if we're wrapping a static property.
Setter Action<T> Invoke the original setter with the provided value.
Getter Func<T> Get the current value
IsStatic Boolean Is this a static property?
TypeName String The name of the type that the property belongs to.
PropertyName String The name of the original property. If static, will return the full name including the type.
MemberIdent Int32 The identity of the original property. Used by TypeLibrary as a unique identifier for the property.
Attributes Attribute[] An array of all attributes on the original property.

Methods

U GetAttribute()

Get the attributes of the specified type, or null if it doesn't exist.

Assembly: Sandbox.System Namespace: Sandbox Full Name: Sandbox.WrappedPropertySet<T>