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
파일 보기 프로젝트 열기: 2014-sed-team3/term-project 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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