[]
        
(Showing Draft Content)

C1.DataCollection.C1TreeDataCollection-1.-ctor

C1TreeDataCollection Constructor

C1TreeDataCollection(IEnumerable, string)

Initializes a new instance of the C1TreeDataCollection<T> class.

Declaration
public C1TreeDataCollection(IEnumerable source, string childrenPath)
Parameters
Type Name Description
IEnumerable source

The source from which the tree is built.

string childrenPath

The path property of the items of type T

C1TreeDataCollection(IEnumerable, IReadOnlyList<string>)

Initializes a new instance of the C1TreeDataCollection<T> class.

Declaration
public C1TreeDataCollection(IEnumerable source, IReadOnlyList<string> childrenPaths)
Parameters
Type Name Description
IEnumerable source

The source from which the tree is built.

IReadOnlyList<string> childrenPaths

The list of paths to build the tree.