Microsoft.Extensions.Primitives
A implementation using .
Initializes a new instance of .
The .
Propagates notifications that a change has occurred.
Registers the action to be called whenever the token produced changes.
Produces the change token.
Action called when the token changes.
Registers the action to be called whenever the token produced changes.
Produces the change token.
Action called when the token changes.
state for the consumer.
An which represents one or more instances.
Creates a new instance of .
The list of to compose.
Returns the list of which compose the current .
Add the given to the .
The to add to.
The to add.
The original .
Propagates notifications that a change has occurred.
Gets a value that indicates if a change has occurred.
Indicates if this token will pro-actively raise callbacks. If false, the token consumer must
poll to detect changes.
Registers for a callback that will be invoked when the entry has changed.
MUST be set before the callback is invoked.
The to invoke.
State to be passed into the callback.
An that is used to unregister the callback.
An optimized representation of a substring.
A for .
Initializes an instance of the struct.
The original . The includes the whole .
Initializes an instance of the struct.
The original used as buffer.
The offset of the segment within the .
The length of the segment.
is null
.
or is less than zero, or +
is greater than the number of characters in .
Gets the buffer for this .
Gets the offset within the buffer for this .
Gets the length of this .
Gets the value of this segment as a .
Gets whether this contains a valid value.
Gets the at a specified position in the current .
The offset into the
The at a specified position.
is greater than or equal to or less than zero.
Gets a from the current .
The from this .
Gets a from the current .
The from this .
Compares substrings of two specified objects using the specified rules,
and returns an integer that indicates their relative position in the sort order.
The first to compare.
The second to compare.
One of the enumeration values that specifies the rules for the comparison.
A 32-bit signed integer indicating the lexical relationship between the two comparands.
The value is negative if is less than , 0 if the two comparands are equal,
and positive if is greater than .
Indicates whether the current object is equal to another object of the same type.
An object to compare with this object.
true
if the current object is equal to the other parameter; otherwise, false
.
Indicates whether the current object is equal to another object of the same type.
An object to compare with this object.
One of the enumeration values that specifies the rules to use in the comparison.
true
if the current object is equal to the other parameter; otherwise, false
.
Determines whether two specified objects have the same value. A parameter specifies the culture, case, and
sort rules used in the comparison.
The first to compare.
The second to compare.
One of the enumeration values that specifies the rules for the comparison.
true
if the objects are equal; otherwise, false
.
Checks if the specified is equal to the current .
The to compare with the current .
true
if the specified is equal to the current ; otherwise, false
.
Checks if the specified is equal to the current .
The to compare with the current .
One of the enumeration values that specifies the rules to use in the comparison.
true
if the specified is equal to the current ; otherwise, false
.
is null
.
Checks if two specified have the same value.
The first to compare, or null
.
The second to compare, or null
.
true
if the value of is the same as the value of ; otherwise, false
.
Checks if two specified have different values.
The first to compare, or null
.
The second to compare, or null
.
true
if the value of is different from the value of ; otherwise, false
.
Creates a new from the given .
The to convert to a
Creates a see from the given .
The to convert to a .
Creates a see from the given .
The to convert to a .
Checks if the beginning of this matches the specified when compared using the specified .
The to compare.
One of the enumeration values that specifies the rules to use in the comparison.
true
if matches the beginning of this ; otherwise, false
.
is null
.
Checks if the end of this matches the specified when compared using the specified .
The to compare.
One of the enumeration values that specifies the rules to use in the comparison.
true
if matches the end of this ; otherwise, false
.
is null
.
Retrieves a substring from this .
The substring starts at the position specified by and has the remaining length.
The zero-based starting character position of a substring in this .
A that is equivalent to the substring of remaining length that begins at
in this
is greater than or equal to or less than zero.
Retrieves a substring from this .
The substring starts at the position specified by and has the specified .
The zero-based starting character position of a substring in this .
The number of characters in the substring.
A that is equivalent to the substring of length that begins at
in this
or is less than zero, or + is
greater than .
Retrieves a that represents a substring from this .
The starts at the position specified by .
The zero-based starting character position of a substring in this .
A that begins at in this
whose length is the remainder.
is greater than or equal to or less than zero.
Retrieves a that represents a substring from this .
The starts at the position specified by and has the specified .
The zero-based starting character position of a substring in this .
The number of characters in the substring.
A that is equivalent to the substring of length that begins at in this
or is less than zero, or + is
greater than .
Gets the zero-based index of the first occurrence of the character in this .
The search starts at and examines a specified number of character positions.
The Unicode character to seek.
The zero-based index position at which the search starts.
The number of characters to examine.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
or is less than zero, or + is
greater than .
Gets the zero-based index of the first occurrence of the character in this .
The search starts at .
The Unicode character to seek.
The zero-based index position at which the search starts.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
is greater than or equal to or less than zero.
Gets the zero-based index of the first occurrence of the character in this .
The Unicode character to seek.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters. The search starts at a specified character position and examines a specified number
of character positions.
A Unicode character array containing one or more characters to seek.
The search starting position.
The number of character positions to examine.
The zero-based index position of the first occurrence in this instance where any character in
was found; -1 if no character in was found.
is null
.
or is less than zero, or + is
greater than .
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters. The search starts at a specified character position.
A Unicode character array containing one or more characters to seek.
The search starting position.
The zero-based index position of the first occurrence in this instance where any character in
was found; -1 if no character in was found.
is greater than or equal to or less than zero.
Reports the zero-based index of the first occurrence in this instance of any character in a specified array
of Unicode characters.
A Unicode character array containing one or more characters to seek.
The zero-based index position of the first occurrence in this instance where any character in
was found; -1 if no character in was found.
Reports the zero-based index position of the last occurrence of a specified Unicode character within this instance.
The Unicode character to seek.
The zero-based index position of value if that character is found, or -1 if it is not.
Removes all leading and trailing whitespaces.
The trimmed .
Removes all leading whitespaces.
The trimmed .
Removes all trailing whitespaces.
The trimmed .
Splits a string into s that are based on the characters in an array.
A character array that delimits the substrings in this string, an empty array that
contains no delimiters, or null.
An whose elements contain the s from this instance
that are delimited by one or more characters in .
Indicates whether the specified is null or an Empty string.
The to test.
Returns the represented by this or String.Empty
if the does not contain a value.
The represented by this or String.Empty
if the does not contain a value.
Tokenizes a into s.
Initializes a new instance of .
The to tokenize.
The characters to tokenize by.
Initializes a new instance of .
The to tokenize.
The characters to tokenize by.
Represents zero/null, one, or many strings in an efficient way.
Offset and length are out of bounds for the string or length is greater than the number of characters from index to the end of the string.
Offset and length are out of bounds for this StringSegment or length is greater than the number of characters to the end of this StringSegment.
Cannot change capacity after write started.
Not enough capacity to write '{0}' characters, only '{1}' left.
Not enough capacity to write '{0}' characters, only '{1}' left.
Entire reserved capacity was not used. Capacity: '{0}', written '{1}'.
Entire reserved capacity was not used. Capacity: '{0}', written '{1}'.