C# Class CrossroadsIO.XsVersion

Provides Crossroads I/O version information.
显示文件 Open project: jgoz/crossroads-net

Public Methods

Method Description
AssertAtLeast ( int requiredMajor, int requiredMinor ) : void

Assert that the current version of Crossroads I/O meets the specified minimum required version.

AssertAtMost ( int requiredMajor, int requiredMinor ) : void

Assert that the current version of Crossroads I/O meets the specified maximum allowed version.

IsAtLeast ( int requiredMajor ) : bool

Determine whether the current version of Crossroads I/O meets the specified minimum required version.

IsAtLeast ( int requiredMajor, int requiredMinor ) : bool

Determine whether the current version of Crossroads I/O meets the specified minimum required version.

IsAtMost ( int requiredMajor ) : bool

Determine whether the current version of Crossroads I/O meets the specified maximum allowable version.

IsAtMost ( int requiredMajor, int requiredMinor ) : bool

Determine whether the current version of Crossroads I/O meets the specified maximum allowable version.

ToString ( ) : string

Returns a String that represents the current XsVersion.

Private Methods

Method Description
GetCurrentVersion ( ) : XsVersion
XsVersion ( ) : System
XsVersion ( int major, int minor, int patch ) : System

Method Details

AssertAtLeast() public method

Assert that the current version of Crossroads I/O meets the specified minimum required version.
The Crossroads I/O version does not meet the minimum requirements.
public AssertAtLeast ( int requiredMajor, int requiredMinor ) : void
requiredMajor int An containing the minimum required major version.
requiredMinor int An containing the minimum required minor version.
return void

AssertAtMost() public method

Assert that the current version of Crossroads I/O meets the specified maximum allowed version.
The Crossroads I/O version does not meet the minimum requirements.
public AssertAtMost ( int requiredMajor, int requiredMinor ) : void
requiredMajor int An containing the maximum allowable major version.
requiredMinor int An containing the maximum allowable minor version.
return void

IsAtLeast() public method

Determine whether the current version of Crossroads I/O meets the specified minimum required version.
public IsAtLeast ( int requiredMajor ) : bool
requiredMajor int An containing the minimum required major version.
return bool

IsAtLeast() public method

Determine whether the current version of Crossroads I/O meets the specified minimum required version.
public IsAtLeast ( int requiredMajor, int requiredMinor ) : bool
requiredMajor int An containing the minimum required major version.
requiredMinor int An containing the minimum required minor version.
return bool

IsAtMost() public method

Determine whether the current version of Crossroads I/O meets the specified maximum allowable version.
public IsAtMost ( int requiredMajor ) : bool
requiredMajor int An containing the maximum allowable major version.
return bool

IsAtMost() public method

Determine whether the current version of Crossroads I/O meets the specified maximum allowable version.
public IsAtMost ( int requiredMajor, int requiredMinor ) : bool
requiredMajor int An containing the maximum allowable major version.
requiredMinor int An containing the maximum allowable minor version.
return bool

ToString() public method

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