Table of Contents

Class FlattenedTypeDescriptor

Namespace
Ecng.ComponentModel
Assembly
Ecng.ComponentModel.dll

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

public class FlattenedTypeDescriptor : Disposable, IDisposable, ICustomTypeDescriptor, INotifyPropertiesChanged, INotifyPropertyChanged, INotifyPropertyChanging
Inheritance
FlattenedTypeDescriptor
Implements
Inherited Members
Extension Methods

Constructors

FlattenedTypeDescriptor(object, IEnumerable<(PropertyDescriptor prop, string path)>)

Initializes a new instance of the FlattenedTypeDescriptor class.

public FlattenedTypeDescriptor(object root, IEnumerable<(PropertyDescriptor prop, string path)> descriptors)

Parameters

root object

The root instance.

descriptors IEnumerable<(PropertyDescriptor prop, string path)>

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

Methods

DisposeManaged()

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

protected override void DisposeManaged()

Events

PropertiesChanged

public event Action PropertiesChanged

Event Type

Action

PropertyChanged

public event PropertyChangedEventHandler PropertyChanged

Event Type

PropertyChangedEventHandler

PropertyChanging

public event PropertyChangingEventHandler PropertyChanging

Event Type

PropertyChangingEventHandler