s&box docs

public sealed class Sandbox.PropertyDescription : Sandbox.MemberDescription

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`.

Methods

Showing 3 methods

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

Parameters

  • name: Default: null

public object GetValue(object obj)

Get the value of this property on given object.

public void SetValue(object obj, object value)

Set the value of this property on given object.

Properties

Showing 7 properties

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

Whether this property can be read.

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

Whether this property can be written to.

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

Whether the getter of this property is public.

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

True if this property has index parameters

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

Whether the setter of this property is public.

Metadata

FieldValue
NamespaceSandbox
Typeclass
AssemblySandbox.Reflection
Doc IDT:Sandbox.PropertyDescription

On this page