Table of Contents

Class DynamicPropertyDescriptor

Namespace
Bonsai.Design
Assembly
Bonsai.Design.dll

Provides a virtual property for a class.

public class DynamicPropertyDescriptor : PropertyDescriptor
Inheritance
DynamicPropertyDescriptor
Inherited Members

Constructors

DynamicPropertyDescriptor(string, Type, Func<object, object>, Action<object, object>, params Attribute[])

Initializes a new instance of the DynamicPropertyDescriptor class using the specified name, type, and dynamic methods for getting and setting property values.

Properties

ComponentType

Gets the type of the component this property is bound to.

IsReadOnly

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

PropertyType

Gets the type of the dynamic property.

Methods

CanResetValue(object)

Returns whether resetting an object changes its value. Dynamic properties do not support resetting, so resetting an object never changes its value.

GetValue(object)

Gets the current value of the property on a component.

ResetValue(object)

Resets the value for this property of the component to the default value. Dynamic properties do not support resetting their values.

SetValue(object, object)

Sets the value of the dynamic property to a different value.

ShouldSerializeValue(object)

Determines a value indicating whether the value of this property needs to be persisted. Dynamic property values are transient, so they always need to be persisted.