C# Class NArrange.Core.SortedInserter

Sorted inserter.
Inheritance: IElementInserter
Afficher le fichier Open project: MarcStan/NArrange Class Usage Examples

Méthodes publiques

Méthode Description
InsertElement ( ICodeElement parentElement, ICodeElement codeElement ) : void

Inserts an element into the parent using the strategy defined by the sort configuration.

SortedInserter ( ElementType elementType, SortBy sortBy ) : System

Creates a new sorted inserter using the specified sorting configuration.

Private Methods

Méthode Description
CreateComparer ( SortBy sortBy ) : IComparer

Creates a comparer based on the sort configuration.

Method Details

InsertElement() public méthode

Inserts an element into the parent using the strategy defined by the sort configuration.
public InsertElement ( ICodeElement parentElement, ICodeElement codeElement ) : void
parentElement ICodeElement Parent element.
codeElement ICodeElement Code element to insert.
Résultat void

SortedInserter() public méthode

Creates a new sorted inserter using the specified sorting configuration.
public SortedInserter ( ElementType elementType, SortBy sortBy ) : System
elementType ElementType Type of the element.
sortBy NArrange.Core.Configuration.SortBy The sort by.
Résultat System