Table of Contents

Class IntegerRange

Namespace
ArcanaDevelopment.adTempus.Shared
Assembly
ArcanaDevelopment.adTempus.Shared.dll
public class IntegerRange : Interval<int?>
Inheritance
object
Interval<int?>
IntegerRange

Constructors

IntegerRange()

public IntegerRange()

IntegerRange(int?, BoundType, int?, BoundType)

public IntegerRange(int? lowerBound, BoundType lowerBoundType, int? upperBound, BoundType upperBoundType)

Parameters

NameTypeDescription
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

NameTypeDescription
source string

Returns

IntegerRange

ParseValue(string)

Parses a value of type int? from a string value.

protected override int? ParseValue(string value)

Parameters

NameTypeDescription
value string

Returns

int?

Inherited Members