API ReferenceSandbox
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`.
Methods3
Showing 3 methods
public bool CheckValidationAttributes(object obj, string[] errors, string name = null)
| Parameter | Type | Description |
|---|---|---|
| obj | object | — |
| errors | string[] | — |
| name = null | string | — |
Returns:
bool—public object GetValue(object obj)
Get the value of this property on given object.
| Parameter | Type | Description |
|---|---|---|
| obj | object | — |
Returns:
object—public void SetValue(object obj, object value)
Set the value of this property on given object.
| Parameter | Type | Description |
|---|---|---|
| obj | object | — |
| value | object | — |
Returns:
void—No results match this filter.
Properties7
Showing 7 properties
public bool Sandbox.PropertyDescription.CanRead { get; set; }
Whether this property can be read.
Returns:
bool—public bool Sandbox.PropertyDescription.CanWrite { get; set; }
Whether this property can be written to.
Returns:
bool—public bool Sandbox.PropertyDescription.IsGetMethodPublic { get; set; }
Whether the getter of this property is public.
Returns:
bool—public bool Sandbox.PropertyDescription.IsIndexer { get; set; }
True if this property has index parameters
Returns:
bool—public virtual bool Sandbox.PropertyDescription.IsProperty { get; set; }
Returns:
bool—public bool Sandbox.PropertyDescription.IsSetMethodPublic { get; set; }
Whether the setter of this property is public.
Returns:
bool—public System.Type Sandbox.PropertyDescription.PropertyType { get; set; }
Property type.
No results match this filter.