PropertyDescriptionclass

Describes a property. We use this class to wrap and return PropertyInfo's that are safe to interact with. Returned by `Sandbox.Internal.TypeLibrary` and `Sandbox.TypeDescription`.

objectMemberDescriptionPropertyDescription
Namespace
Sandbox
Assembly
Sandbox.Reflection
Declaration
public sealed class Sandbox.PropertyDescription : Sandbox.MemberDescription

Methods3

Showing 3 methods

public bool CheckValidationAttributes(object obj, string[] errors, string name = null)PUBLIC

ParameterTypeDescription
objobject
errorsstring[]
name = nullstring
Returns:bool

public object GetValue(object obj)PUBLIC

Get the value of this property on given object.

ParameterTypeDescription
objobject
Returns:object

public void SetValue(object obj, object value)PUBLIC

Set the value of this property on given object.

ParameterTypeDescription
objobject
valueobject
Returns:void

Properties7

Showing 7 properties

public bool Sandbox.PropertyDescription.CanRead { get; set; }PUBLICGETSET

Whether this property can be read.

Returns:bool

public bool Sandbox.PropertyDescription.CanWrite { get; set; }PUBLICGETSET

Whether this property can be written to.

Returns:bool

public bool Sandbox.PropertyDescription.IsGetMethodPublic { get; set; }PUBLICGETSET

Whether the getter of this property is public.

Returns:bool

public bool Sandbox.PropertyDescription.IsIndexer { get; set; }PUBLICGETSET

True if this property has index parameters

Returns:bool

public virtual bool Sandbox.PropertyDescription.IsProperty { get; set; }PUBLICVIRTUALGETSET

Returns:bool

public bool Sandbox.PropertyDescription.IsSetMethodPublic { get; set; }PUBLICGETSET

Whether the setter of this property is public.

Returns:bool

On this page