C# 클래스 HandCoded.FpML.Util.Version

Instances of the Version class hold a version number expressed as two major and minor component values. Instances can be compared to determine equality and relative ordering.
상속: IComparable
파일 보기 프로젝트 열기: formicary/fpml-toolkit-csharp 1 사용 예제들

공개 메소드들

메소드 설명
CompareTo ( Object other ) : int

Returns the result of comparing this instance to another Object.

CompareTo ( Version other ) : int

Compares two Version instances to determine thier relative ordering.

Equals ( Version other ) : bool

Compares two Version instances and determines if they contain the same version number.

Equals ( object other ) : bool

Determines if this Version instance and another hold the same version number.

GetHashCode ( ) : int

Returns the hash value of the date for hash based data structures and algorithms.

Parse ( string version ) : Version

Parse the FpML version number given as an argument and return a corresponding Version instance. A hash table is used to lookup previously converted strings.

ToString ( ) : string

Converts the instance data members to a string representation that can be displayed for debugging purposes.

비공개 메소드들

메소드 설명
Version ( int major, int minor ) : System

Constructs a Version instance from major and minor component values.

Version ( string version ) : System

Constructs a Version instance from a 'major-minor' format string value.

메소드 상세

CompareTo() 공개 메소드

Returns the result of comparing this instance to another Object.
If the argument is not a /// Date instance.
public CompareTo ( Object other ) : int
other Object The instance to compare with.
리턴 int

CompareTo() 공개 메소드

Compares two Version instances to determine thier relative ordering.
public CompareTo ( Version other ) : int
other Version The Version instance to compare with.
리턴 int

Equals() 공개 메소드

Compares two Version instances and determines if they contain the same version number.
public Equals ( Version other ) : bool
other Version The Version instance to compare with.
리턴 bool

Equals() 공개 메소드

Determines if this Version instance and another hold the same version number.
public Equals ( object other ) : bool
other object The instance to compare with.
리턴 bool

GetHashCode() 공개 메소드

Returns the hash value of the date for hash based data structures and algorithms.
public GetHashCode ( ) : int
리턴 int

Parse() 공개 정적인 메소드

Parse the FpML version number given as an argument and return a corresponding Version instance. A hash table is used to lookup previously converted strings.
public static Parse ( string version ) : Version
version string The version number string.
리턴 Version

ToString() 공개 메소드

Converts the instance data members to a string representation that can be displayed for debugging purposes.
public ToString ( ) : string
리턴 string