NumberRange Structure

Provides the minimum and maximum values of a number range.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+1dadc87dcf0a0f837e19a3ce2deb7c1cd85375d1
public readonly struct NumberRange : IEquatable<NumberRange>
Inheritance
Object    ValueType    NumberRange
Implements
IEquatableNumberRange

Constructors

NumberRange(UInt16) Default constructor for countries where the number of digits is fixed.
NumberRange(UInt16, UInt16) Default constructor for countries where the number of digits is variable.

Methods

Check Checks if the input is within the range of Min and Max.
Equals(NumberRange)Indicates whether the current object is equal to another object of the same type.
Equals(Object)Indicates whether this instance and a specified object are equal.
(Overrides ValueTypeEquals(Object))
GetHashCodeReturns the hash code for this instance.
(Overrides ValueTypeGetHashCode)

Operators

Equality(NumberRange, NumberRange) Equivalence operator for NumberRange.
(UInt16 to NumberRange) Implicit conversion from UInt16 to NumberRange. Created for sake of ease of use.
Inequality(NumberRange, NumberRange) Not-equal operator for NumberRange.

Fields

Max Maximum value of the range.
Min Minimum value of the range.

See Also