C# Class KEngine.AppVersion

For App Version, version string can with description 1.2.3.123.release.mi MAJOR.MINOR.PATCH.BUILD.DESC
Inheritance: IComparable, ICloneable
ファイルを表示 Open project: mr-kelly/KEngine Class Usage Examples

Public Properties

Property Type Description
Build uint
Major uint
Minor uint
Patch uint

Public Methods

Method Description
AppVersion ( string versionStr ) : System
Clone ( ) : object

Clone new one

using ToString() to create new

CompareTo ( Object v2o, int limitNumber ) : int

逐字比较,遇不同,数字比较

CompareTo ( object obj ) : int
Equals ( object obj ) : bool
GetHashCode ( ) : int
ToString ( ) : string

To Version String eg. 1.2.1.0.alpha.xxx

ToVersion2 ( ) : string

eg. 1.2

ToVersion3 ( ) : string

eg. 1.2.1

ToVersion4 ( ) : string

eg. 1.2.1.0

operator ( ) : bool

Protected Methods

Method Description
Equals ( AppVersion other ) : bool

Private Methods

Method Description
GetVersionNumbers ( int limit = 4 ) : uint[]

所有版本数字组成的数组

Method Details

AppVersion() public method

public AppVersion ( string versionStr ) : System
versionStr string
return System

Clone() public method

Clone new one

using ToString() to create new

public Clone ( ) : object
return object

CompareTo() public method

逐字比较,遇不同,数字比较
public CompareTo ( Object v2o, int limitNumber ) : int
v2o Object
limitNumber int 限制几位数字进行比较?
return int

CompareTo() public method

public CompareTo ( object obj ) : int
obj object
return int

Equals() protected method

protected Equals ( AppVersion other ) : bool
other AppVersion
return bool

Equals() public method

public Equals ( object obj ) : bool
obj object
return bool

GetHashCode() public method

public GetHashCode ( ) : int
return int

ToString() public method

To Version String eg. 1.2.1.0.alpha.xxx
public ToString ( ) : string
return string

ToVersion2() public method

eg. 1.2
public ToVersion2 ( ) : string
return string

ToVersion3() public method

eg. 1.2.1
public ToVersion3 ( ) : string
return string

ToVersion4() public method

eg. 1.2.1.0
public ToVersion4 ( ) : string
return string

operator() public static method

public static operator ( ) : bool
return bool

Property Details

Build public_oe property

public uint Build
return uint

Major public_oe property

public uint Major
return uint

Minor public_oe property

public uint Minor
return uint

Patch public_oe property

public uint Patch
return uint