UnicodeRange Class
Represents an ordered pair of Unicode character min and max values.
public class UnicodeRange
- Inheritance:
- object object
Constructors
UnicodeRange()
Initializes a new instance of the UnicodeRange class.
public UnicodeRange()
Remarks
The default constructor initializes all fields to their default values.
UnicodeRange(int, int)
Initializes a new instance of the UnicodeRange class with the specified min and max values.
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
Gets or sets the maximum value of this UnicodeRange.
Min
Gets or sets 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:
true
if 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 |
Returns
- bool:
true
if the specifiedObject
is equal to the currentObject
; otherwise,false
.
GetHashCode()
Returns a hash code for this object.
public override int GetHashCode()
Returns
- int:
An integer value that specifies a hash value for this object.
ToString()
Converts the object to a String
.
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. |