![]() |
Paradox Game Engine
v1.0.0 beta06
|
A dependency to a range of version. More...
Public Member Functions | |
PackageVersionRange () | |
Initializes a new instance of the PackageVersionRange class. More... | |
PackageVersionRange (PackageVersion version) | |
Initializes a new instance of the PackageVersionRange class. More... | |
PackageVersionRange (PackageVersion minVersion, bool minVersionInclusive) | |
Initializes a new instance of the PackageVersionRange class. More... | |
string | ToPrettyPrint () |
Display a pretty version of the dependency. More... | |
override string | ToString () |
Static Public Member Functions | |
static PackageVersionRange | GetSafeRange (PackageVersion version) |
The safe range is defined as the highest build and revision for a given major and minor version More... | |
static bool | TryParse (string value, out PackageVersionRange result) |
Tries to parse a version dependency. More... | |
Properties | |
PackageVersion | MinVersion [get, set] |
Gets or sets the minimum version. More... | |
bool | IsMinInclusive [get, set] |
Gets or sets a value indicating whether the min version is inclusive. More... | |
PackageVersion | MaxVersion [get, set] |
Gets or sets the maximum version. More... | |
bool | IsMaxInclusive [get, set] |
Gets or sets a value indicating whether the max version is inclusive. More... | |
A dependency to a range of version.
The version string is either a simple version or an arithmetic range
Definition at line 38 of file PackageVersionRange.cs.
SiliconStudio.Assets.PackageVersionRange.PackageVersionRange | ( | ) |
Initializes a new instance of the PackageVersionRange class.
Definition at line 43 of file PackageVersionRange.cs.
SiliconStudio.Assets.PackageVersionRange.PackageVersionRange | ( | PackageVersion | version | ) |
Initializes a new instance of the PackageVersionRange class.
version | The exact version. |
Definition at line 51 of file PackageVersionRange.cs.
SiliconStudio.Assets.PackageVersionRange.PackageVersionRange | ( | PackageVersion | minVersion, |
bool | minVersionInclusive | ||
) |
Initializes a new instance of the PackageVersionRange class.
minVersion | The minimum version. |
minVersionInclusive | if set to true the minimum version is inclusive |
Definition at line 64 of file PackageVersionRange.cs.
|
static |
The safe range is defined as the highest build and revision for a given major and minor version
Definition at line 101 of file PackageVersionRange.cs.
References SiliconStudio.Assets.PackageVersion.Version.
string SiliconStudio.Assets.PackageVersionRange.ToPrettyPrint | ( | ) |
Display a pretty version of the dependency.
Definition at line 226 of file PackageVersionRange.cs.
override string SiliconStudio.Assets.PackageVersionRange.ToString | ( | ) |
Definition at line 276 of file PackageVersionRange.cs.
|
static |
Tries to parse a version dependency.
value | The version dependency as a string. |
result | The parsed result. |
true
if successfuly parsed, false
otherwise.System.ArgumentNullException | value |
Definition at line 118 of file PackageVersionRange.cs.
References SiliconStudio.Assets.PackageVersion.TryParse().
|
getset |
Gets or sets a value indicating whether the max version is inclusive.
true
if the max version is inclusive; otherwise, false
.
Definition at line 96 of file PackageVersionRange.cs.
|
getset |
Gets or sets a value indicating whether the min version is inclusive.
true
if the min version is inclusive; otherwise, false
.
Definition at line 82 of file PackageVersionRange.cs.
|
getset |
Gets or sets the maximum version.
The maximum version.
Definition at line 89 of file PackageVersionRange.cs.
|
getset |
Gets or sets the minimum version.
The minimum version.
Definition at line 75 of file PackageVersionRange.cs.