Class DynamicPropertyDescriptor
- Namespace
- Tripous
- Assembly
- Tripous.dll
Provides property descriptor support for a dynamic property of a DynamicClass instance.
public class DynamicPropertyDescriptor : PropertyDescriptor
- Inheritance
-
DynamicPropertyDescriptor
- Inherited Members
- Extension Methods
Constructors
DynamicPropertyDescriptor(DynamicClass, string, Type, Attribute[])
Constructor.
public DynamicPropertyDescriptor(DynamicClass Instance, string PropName, Type PropType, Attribute[] PropAttributes)
Parameters
InstanceDynamicClassPropNamestringPropTypeTypePropAttributesAttribute[]
Properties
ComponentType
Gets the component type.
public override Type ComponentType { get; }
Property Value
IsReadOnly
Gets a value indicating whether this property is read-only.
public override bool IsReadOnly { get; }
Property Value
PropertyType
Gets the property type.
public override Type PropertyType { get; }
Property Value
Methods
CanResetValue(object)
Returns true when the property value can be reset.
public override bool CanResetValue(object Component)
Parameters
Componentobject
Returns
GetValue(object)
Gets the property value.
public override object GetValue(object Component)
Parameters
Componentobject
Returns
ResetValue(object)
Resets the property value.
public override void ResetValue(object Component)
Parameters
Componentobject
SetValue(object, object)
Sets the property value.
public override void SetValue(object Component, object Value)
Parameters
ShouldSerializeValue(object)
Returns true when the property value should be serialized.
public override bool ShouldSerializeValue(object Component)
Parameters
Componentobject