WrappedPropertySet<T>class

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

objectWrappedPropertySet<T>
Namespace
Sandbox
Assembly
Sandbox.System
Declaration
public sealed struct Sandbox.WrappedPropertySet<T>

Methods1

Showing 1 methods

public U GetAttribute()PUBLIC

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

Returns:U

Properties9

Showing 9 properties

public System.Attribute[] Sandbox.WrappedPropertySet<T>.Attributes { get; set; }PUBLICGETSET

An array of all attributes on the original property.

Returns:Attribute[]

public System.Func`1<T> Sandbox.WrappedPropertySet<T>.Getter { get; set; }PUBLICGETSET

Get the current value

Returns:Func<T>

public bool Sandbox.WrappedPropertySet<T>.IsStatic { get; set; }PUBLICGETSET

Is this a static property?

Returns:bool

public int Sandbox.WrappedPropertySet<T>.MemberIdent { get; set; }PUBLICGETSET

The identity of the original property. Used by TypeLibrary as a unique identifier for the property.

Returns:int

public object Sandbox.WrappedPropertySet<T>.Object { get; set; }PUBLICGETSET

The object whose property is being wrapped. This will be null if we're wrapping a static property.

Returns:object

public string Sandbox.WrappedPropertySet<T>.PropertyName { get; set; }PUBLICGETSET

The name of the original property. If static, will return the full name including the type.

Returns:string

public System.Action`1<T> Sandbox.WrappedPropertySet<T>.Setter { get; set; }PUBLICGETSET

Invoke the original setter with the provided value.

Returns:Action<T>

public string Sandbox.WrappedPropertySet<T>.TypeName { get; set; }PUBLICGETSET

The name of the type that the property belongs to.

Returns:string

public T Sandbox.WrappedPropertySet<T>.Value { get; set; }PUBLICGETSET

The value the property wants to be set to.

Returns:T

On this page