class
PropertyDescription
public sealed class PropertyDescription : MemberDescription Describes a property. We use this class to wrap and return PropertyInfo's that are safe to interact with. Returned by TypeLibrary and TypeDescription.
Properties
| Name | Type | Description |
|---|---|---|
IsProperty virtual | Boolean | |
CanWrite | Boolean | Whether this property can be written to. |
CanRead | Boolean | Whether this property can be read. |
IsGetMethodPublic | Boolean | Whether the getter of this property is public. |
IsSetMethodPublic | Boolean | Whether the setter of this property is public. |
PropertyType | Type | Property type. |
IsIndexer | Boolean | True if this property has index parameters |
Methods
Object GetValue(Object obj) Get the value of this property on given object.
Void SetValue(Object obj, Object value) Set the value of this property on given object.
Boolean CheckValidationAttributes(Object obj, String[] errors, String name = null)