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.