FlattenedTypeDescriptor

Ecng.ComponentModel

Represents a type descriptor that flattens the properties of the specified object.

继承自: Disposable

实现: ICustomTypeDescriptor, INotifyPropertiesChanged, INotifyPropertyChanged, INotifyPropertyChanging

构造函数

FlattenedTypeDescriptor
public FlattenedTypeDescriptor(object root, IEnumerable<ValueTuple<PropertyDescriptor, string>> descriptors)
flattenedTypeDescriptor = FlattenedTypeDescriptor(root, descriptors)

Initializes a new instance of the FlattenedTypeDescriptor class.

root
The root instance.
descriptors
The collection of property descriptors with their paths relative to the root object.

方法

DisposeManaged
protected override void DisposeManaged()
flattenedTypeDescriptor.DisposeManaged()

Disposes the managed resources. Override this method to add custom clean up of managed resources.

事件

PropertiesChanged
public event Action PropertiesChanged
flattenedTypeDescriptor.PropertiesChanged += handler

PropertiesChanged.

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
flattenedTypeDescriptor.PropertyChanged += handler

PropertyChanged.

PropertyChanging
public event PropertyChangingEventHandler PropertyChanging
flattenedTypeDescriptor.PropertyChanging += handler

PropertyChanging.