C# Класс Smrf.NodeXL.Core.ByDelegateVertexSorter

Sorts a collection of vertices using a vertex-comparison delegate.
Use this class when you want to sort a collection of vertices using your own vertex comparison method. Set the VertexComparer property to a delegate that compares two vertices, then call the method.

If you want to sort on metadata values, use instead. is optimized for this task.

Наследование: VertexSorterBase
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_oVertexComparer Comparison

Открытые методы

Метод Описание
AssertValid ( ) : void
ByDelegateVertexSorter ( ) : System

Initializes a new instance of the ByDelegateVertexSorter class.

CompareVerticesByID ( IVertex vertex1, IVertex vertex2 ) : Int32

Защищенные методы

Метод Описание
SortCore ( IVertex vertices ) : IVertex[]

Описание методов

AssertValid() публичный Метод

public AssertValid ( ) : void
Результат void

ByDelegateVertexSorter() публичный Метод

Initializes a new instance of the ByDelegateVertexSorter class.
public ByDelegateVertexSorter ( ) : System
Результат System

CompareVerticesByID() публичный Метод

public CompareVerticesByID ( IVertex vertex1, IVertex vertex2 ) : Int32
vertex1 IVertex
vertex2 IVertex
Результат System.Int32

SortCore() защищенный Метод

protected SortCore ( IVertex vertices ) : IVertex[]
vertices IVertex
Результат IVertex[]

Описание свойств

m_oVertexComparer защищенное свойство

protected Comparison m_oVertexComparer
Результат Comparison