Table of Contents

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

Instance DynamicClass
PropName string
PropType Type
PropAttributes Attribute[]

Properties

ComponentType

Gets the component type.

public override Type ComponentType { get; }

Property Value

Type

IsReadOnly

Gets a value indicating whether this property is read-only.

public override bool IsReadOnly { get; }

Property Value

bool

PropertyType

Gets the property type.

public override Type PropertyType { get; }

Property Value

Type

Methods

CanResetValue(object)

Returns true when the property value can be reset.

public override bool CanResetValue(object Component)

Parameters

Component object

Returns

bool

GetValue(object)

Gets the property value.

public override object GetValue(object Component)

Parameters

Component object

Returns

object

ResetValue(object)

Resets the property value.

public override void ResetValue(object Component)

Parameters

Component object

SetValue(object, object)

Sets the property value.

public override void SetValue(object Component, object Value)

Parameters

Component object
Value object

ShouldSerializeValue(object)

Returns true when the property value should be serialized.

public override bool ShouldSerializeValue(object Component)

Parameters

Component object

Returns

bool