FlattenedTypeDescriptor
Ecng.ComponentModel
Represents a type descriptor that flattens the properties of the specified object.
Inherits: Disposable
Implements: ICustomTypeDescriptor, INotifyPropertiesChanged, INotifyPropertyChanged, INotifyPropertyChanging
Constructors
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.
Methods
DisposeManaged
protected override void DisposeManaged()
flattenedTypeDescriptor.DisposeManaged()
Disposes the managed resources. Override this method to add custom clean up of managed resources.
Events
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.