Class VersionRange
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
public class VersionRange : Interval<Version>
- Inheritance
-
objectInterval<Version>VersionRange
Constructors
VersionRange()
public VersionRange()
VersionRange(Version, BoundType, Version, BoundType)
public VersionRange(Version lowerBound, BoundType lowerBoundType, Version upperBound, BoundType upperBoundType)
Parameters
| Name | Type | Description |
|---|---|---|
lowerBound |
Version | |
lowerBoundType |
BoundType | |
upperBound |
Version | |
upperBoundType |
BoundType |
Properties
ValuePattern
Gets the Regex pattern that is used to match a value when parsing from a string.
protected override string ValuePattern { get; }
Property Value
- string
Remarks
For example, for an integer, the ValuePattern would be "\d+".
Methods
Parse(string)
public static VersionRange Parse(string source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string |
Returns
ParseValue(string)
Parses a value of type System.Version from a string value.
protected override Version ParseValue(string value)
Parameters
| Name | Type | Description |
|---|---|---|
value |
string |
Returns
- Version
ParseVersion(string)
Parses a System.Version from the source string.
public static Version ParseVersion(string source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string |
Returns
- Version
Null for a null or empty string, otherwise a new System.Version object.
Exceptions
- FormatException
Thrown if the
sourceis not a valid version string.