Class Range
This class holds the information about range.
Inheritance
System.Object
Range
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: MAT.AtlasSessionApi
Assembly: MAT.AtlasSessionApi.dll
Syntax
public sealed class Range
Constructors
Range(Double, Double)
Initializes a new instance of range.
Declaration
public Range(double lower, double upper)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Double | lower | Lower value of the range. |
| System.Double | upper | Upper value of the range. |
Properties
Lower
Gets the lower value of range.
Declaration
public double Lower { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Upper
Gets the upper value of range.
Declaration
public double Upper { get; }
Property Value
| Type | Description |
|---|---|
| System.Double |
Methods
Equals(Range)
Is lower and upper value same?
Declaration
public bool Equals(Range other)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | other |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Equals(Object)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object obj)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| System.Boolean | true if the specified object is equal to the current object; otherwise, false. |
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| System.Int32 |
Overrides
System.Object.GetHashCode()
ToString()
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| System.String |
Overrides
System.Object.ToString()
Operators
Equality(Range, Range)
Is range equal?
Declaration
public static bool operator ==(Range left, Range right)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | left | |
| Range | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Inequality(Range, Range)
Is range unequal?
Declaration
public static bool operator !=(Range left, Range right)
Parameters
| Type | Name | Description |
|---|---|---|
| Range | left | |
| Range | right |
Returns
| Type | Description |
|---|---|
| System.Boolean |