UnicodeRange Class
Represents an ordered pair of Unicode character min and max values.
public class UnicodeRange
- Inheritance:
- object object
Constructors
UnicodeRange()
Initializes an instance of the class.
public UnicodeRange()
UnicodeRange(int, int)
Initializes an instance of the class.
public UnicodeRange(int min, int max)
| Parameter | Type | Description |
|---|---|---|
| min | int | The minimum value of the range. |
| max | int | The maximum value of the range. |
Properties
Max
The maximum value of this UnicodeRange.
Min
The minimum value of this UnicodeRange.
Methods
Contains(int)
Returns whether the range inclusively contains the specified value.
public bool Contains(int value)
| Parameter | Type | Description |
|---|---|---|
| value | int | The value to check. |
Returns
- bool:
trueif the range inclusively contains the specified value; otherwise,false.
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
| Parameter | Type | Description |
|---|---|---|
| obj | object | The object to compare with the current object. |
Returns
- bool:
trueif the specified object is equal to the current object; otherwise,false.
GetHashCode()
Serves as the default hash function.
ToString()
Returns the string representation of this object.
Operators
operator ==(UnicodeRange, UnicodeRange)
Compares two UnicodeRange objects. The result specifies whether the values of the Min and Max properties of the two UnicodeRange objects are equal.
public static bool operator ==(UnicodeRange left, UnicodeRange right)
| Parameter | Type | Description |
|---|---|---|
| left | UnicodeRange | A UnicodeRange to compare. |
| right | UnicodeRange | A UnicodeRange to compare. |
Returns
operator !=(UnicodeRange, UnicodeRange)
Compares two UnicodeRange objects. The result specifies whether the values of the Min and Max properties of the two UnicodeRange objects are unequal.
public static bool operator !=(UnicodeRange left, UnicodeRange right)
| Parameter | Type | Description |
|---|---|---|
| left | UnicodeRange | A UnicodeRange to compare. |
| right | UnicodeRange | A UnicodeRange to compare. |
Returns
Inherited Members
- object.GetType()
- object.MemberwiseClone()
- object.Equals(object, object)
- object.ReferenceEquals(object, object)