In This Article

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.

public int Max { get; set; }

Property Value

int

Min

The minimum value of this UnicodeRange.

public int Min { get; set; }

Property Value

int

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 object to compare with the current object.

Returns

bool:

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int:

A hash code for the current object.

ToString()

Returns the string representation of this object.

public override string ToString()

Returns

string:

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

bool:

true if the Min and Max values of left and right are equal; otherwise, false.

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

bool:

true if the Min and Max values of left and right are unequal; otherwise, false.

Inherited Members

Extension Methods