C# Class SenseNet.ContentRepository.Storage.VersionNumber

VersionNumber is for handling version numbers in major.minor form.
Inheritance: IComparable, ICloneable
ファイルを表示 Open project: maxpavlov/FlexNet Class Usage Examples

Public Properties

Property Type Description
Header VersionNumber
LastAccessible VersionNumber
LastMajor VersionNumber
LastMinor VersionNumber

Public Methods

Method Description
ChangeStatus ( VersionStatus versionStatus ) : VersionNumber
Clone ( ) : VersionNumber

Clones this instance.

CompareTo ( object obj ) : int

Compares the current instance with another object of the same type.

Equals ( object obj ) : bool

Determines whether the specified is equal to the current .

GetHashCode ( ) : int

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.

Parse ( string versionStr ) : VersionNumber

Parses the specified version string. Valid format is the following: Optional prefix: "V" or "v", major number, ".", minor number. For example: V1.0, 2.3, v12.3456

ToDisplayText ( ) : string
ToString ( ) : string

Returns a that represents the current .

TryParse ( string versionString, VersionNumber &version ) : bool

Parses the specified version string. Valid format is the following: ((['V'|'v'])?[majornumber][.][minornumber]([.][*]+)?)|'lastmajor'|'lastminor' For example: V1.0, 2.3, v12.3456, lastmajor

VersionNumber ( int major, int minor ) : System
VersionNumber ( int major, int minor, VersionStatus status ) : System

Initializes a new instance of the VersionNumber class.

operator ( ) : bool

Implements the operator ==.

Private Methods

Method Description
GetVersionStatus ( string statusString ) : VersionStatus
ICloneable ( ) : object

Creates a new object that is a copy of the current instance.

VersionNumber ( AbstractVersion abstractVersion ) : System

Method Details

ChangeStatus() public method

public ChangeStatus ( VersionStatus versionStatus ) : VersionNumber
versionStatus VersionStatus
return VersionNumber

Clone() public method

Clones this instance.
public Clone ( ) : VersionNumber
return VersionNumber

CompareTo() public method

Compares the current instance with another object of the same type.
obj is not the same type as this instance.
public CompareTo ( object obj ) : int
obj object An object to compare with this instance.
return int

Equals() public method

Determines whether the specified is equal to the current .
public Equals ( object obj ) : bool
obj object The to compare with the current .
return bool

GetHashCode() public method

Serves as a hash function for a particular type. is suitable for use in hashing algorithms and data structures like a hash table.
public GetHashCode ( ) : int
return int

Parse() public static method

Parses the specified version string. Valid format is the following: Optional prefix: "V" or "v", major number, ".", minor number. For example: V1.0, 2.3, v12.3456
public static Parse ( string versionStr ) : VersionNumber
versionStr string The version string.
return VersionNumber

ToDisplayText() public method

public ToDisplayText ( ) : string
return string

ToString() public method

Returns a that represents the current .
public ToString ( ) : string
return string

TryParse() public static method

Parses the specified version string. Valid format is the following: ((['V'|'v'])?[majornumber][.][minornumber]([.][*]+)?)|'lastmajor'|'lastminor' For example: V1.0, 2.3, v12.3456, lastmajor
public static TryParse ( string versionString, VersionNumber &version ) : bool
versionString string The version string
version VersionNumber Parsed VersionNumber if conversion was successful.
return bool

VersionNumber() public method

public VersionNumber ( int major, int minor ) : System
major int
minor int
return System

VersionNumber() public method

Initializes a new instance of the VersionNumber class.
public VersionNumber ( int major, int minor, VersionStatus status ) : System
major int The major verion number.
minor int The minor version number.
status VersionStatus The version status.
return System

operator() public static method

Implements the operator ==.
public static operator ( ) : bool
return bool

Property Details

Header public_oe static_oe property

public static VersionNumber,SenseNet.ContentRepository.Storage Header
return VersionNumber

LastAccessible public_oe static_oe property

public static VersionNumber,SenseNet.ContentRepository.Storage LastAccessible
return VersionNumber

LastMajor public_oe static_oe property

public static VersionNumber,SenseNet.ContentRepository.Storage LastMajor
return VersionNumber

LastMinor public_oe static_oe property

public static VersionNumber,SenseNet.ContentRepository.Storage LastMinor
return VersionNumber