Class IntegerRange
- Namespace
- ArcanaDevelopment.adTempus.Shared
- Assembly
- ArcanaDevelopment.adTempus.Shared.dll
public class IntegerRange : Interval<int?>
- Inheritance
-
objectInterval<int?>IntegerRange
Constructors
IntegerRange()
public IntegerRange()
IntegerRange(int?, BoundType, int?, BoundType)
public IntegerRange(int? lowerBound, BoundType lowerBoundType, int? upperBound, BoundType upperBoundType)
Parameters
| Name | Type | Description |
|---|---|---|
lowerBound |
int? | |
lowerBoundType |
BoundType | |
upperBound |
int? | |
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 IntegerRange Parse(string source)
Parameters
| Name | Type | Description |
|---|---|---|
source |
string |
Returns
ParseValue(string)
Parses a value of type int? from a string value.
protected override int? ParseValue(string value)
Parameters
| Name | Type | Description |
|---|---|---|
value |
string |
Returns
- int?