C# 클래스 System.Xml.Xsl.Runtime.XmlSortKey

Base internal class for all sort keys. Inherits from IComparable, so that Array.Sort can perform comparison.
상속: IComparable
파일 보기 프로젝트 열기: dotnet/corefx 1 사용 예제들

공개 메소드들

메소드 설명
AddSortKey ( XmlSortKey sortKey ) : XmlSortKey

Sometimes a key is composed of multiple parts. For example: (LastName, FirstName). Multi-part keys are linked together in a list. This method recursively adds a new key part to the end of the list. Returns the first (primary) key in the list.

CompareTo ( object that ) : int

Base internal class is abstract and doesn't actually implement CompareTo; derived classes must do this.

보호된 메소드들

메소드 설명
BreakSortingTie ( XmlSortKey that ) : int

When two keys are compared and found to be equal, the tie must be broken. If there is a secondary key, then use that to break the tie. Otherwise, use the input ordering to break the tie. Since every key has a unique index, this is guaranteed to always break the tie.

CompareToEmpty ( object obj ) : int

Compare a non-empty key (this) to an empty key (obj). The empty sequence always sorts either before all other values, or after all other values.

메소드 상세

AddSortKey() 공개 메소드

Sometimes a key is composed of multiple parts. For example: (LastName, FirstName). Multi-part keys are linked together in a list. This method recursively adds a new key part to the end of the list. Returns the first (primary) key in the list.
public AddSortKey ( XmlSortKey sortKey ) : XmlSortKey
sortKey XmlSortKey
리턴 XmlSortKey

BreakSortingTie() 보호된 메소드

When two keys are compared and found to be equal, the tie must be broken. If there is a secondary key, then use that to break the tie. Otherwise, use the input ordering to break the tie. Since every key has a unique index, this is guaranteed to always break the tie.
protected BreakSortingTie ( XmlSortKey that ) : int
that XmlSortKey
리턴 int

CompareTo() 공개 추상적인 메소드

Base internal class is abstract and doesn't actually implement CompareTo; derived classes must do this.
public abstract CompareTo ( object that ) : int
that object
리턴 int

CompareToEmpty() 보호된 메소드

Compare a non-empty key (this) to an empty key (obj). The empty sequence always sorts either before all other values, or after all other values.
protected CompareToEmpty ( object obj ) : int
obj object
리턴 int