C# Class NArrange.Core.SortedInserter

Sorted inserter.
Inheritance: IElementInserter
Mostrar archivo Open project: MarcStan/NArrange Class Usage Examples

Public Methods

Method 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

Method Description
CreateComparer ( SortBy sortBy ) : IComparer

Creates a comparer based on the sort configuration.

Method Details

InsertElement() public method

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.
return void

SortedInserter() public method

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.
return System