C# Class InTheHand.ApplicationModel.PackageVersionExtensions

Provides interoperability between Windows Runtime PackageVersion and .NET Version types.
PlatformVersion supported AndroidAndroid 4.4 and later iOSiOS 9.0 and later macOSOS X 10.7 and later tvOStvOS 9.0 and later TizenTizen 3.0 Windows UWPWindows 10 Windows StoreWindows 8.1 or later Windows Phone StoreWindows Phone 8.1 or later Windows Phone SilverlightWindows Phone 8.0 or later Windows (Desktop Apps)Windows Vista or later
Mostra file Open project: inthehand/Charming

Public Methods

Method Description
ToPackageVersion ( this version ) : PackageVersion

Converts a Version to a PackageVersion.

ToString ( this packageVersion, int fieldCount ) : string

Converts the value of the current Version object to its equivalent String representation. A specified count indicates the number of components to return.

ToVersion ( this packageVersion ) : System.Version

Converts the value to a Version.

Method Details

ToPackageVersion() public static method

Converts a Version to a PackageVersion.
public static ToPackageVersion ( this version ) : PackageVersion
version this
return PackageVersion

ToString() public static method

Converts the value of the current Version object to its equivalent String representation. A specified count indicates the number of components to return.
public static ToString ( this packageVersion, int fieldCount ) : string
packageVersion this
fieldCount int The number of components to return. The fieldCount ranges from 0 to 4.
return string

ToVersion() public static method

Converts the value to a Version.
public static ToVersion ( this packageVersion ) : System.Version
packageVersion this
return System.Version