Struct CharacterRange

CharacterRange structure

Specifies a range of character positions within a string.

public struct CharacterRange

Constructors

NameDescription
CharacterRange(int, int)Initializes a new instance of the CharacterRange struct, specifying a range of character positions within a string.

Properties

NameDescription
First { get; set; }Gets or sets the position in the string of the first character of this CharacterRange.
Length { get; set; }Gets or sets the number of positions in this CharacterRange.

Methods

NameDescription
override Equals(object)Gets a value indicating whether this object is equivalent to the specified object.
override GetHashCode()Returns the hash code for this instance.
operator ==Compares two CharacterRange objects. Gets a value indicating whether the First and Length values of the two CharacterRange objects are equal.
operator !=Compares two CharacterRange objects. Gets a value indicating whether the First or Length values of the two CharacterRange objects are not equal.

See Also