Microsoft.Extensions.Primitives
A implementation using .
Initializes a new instance of .
The .
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.
Indicates if this token will pro-actively raise callbacks. If , the token consumer must poll to detect changes.
if the token will proactively raise callbacks; otherwise.
Gets a value that indicates if a change has occurred.
if a change has occured; otherwise.
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.
The type of the state for the action.
An which represents one or more instances.
Creates a new instance of .
The list of to compose.
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.
Indicates if this token will pro-actively raise callbacks. If , the token consumer must poll to detect changes.
if the token will proactively raise callbacks; otherwise.
Returns the list of which compose the current .
The list of instances which compose the current .
Gets a value that indicates if a change has occurred.
if a change has occured; otherwise.
Add the given to the .
The to add to.
The to add.
The original .
Propagates notifications that a change has occurred.
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.
Indicates if this token will pro-actively raise callbacks. If , the token consumer must
poll to detect changes.
if the token will proactively raise callbacks; otherwise.
Gets a value that indicates if a change has occurred.
if a change has occurred; otherwise.
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 .
or is less than zero, or +
is greater than the number of characters in .
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 .
.
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.
is .
if matches the end of this ; otherwise, .
Indicates whether the current object is equal to another object of the same type.
An object to compare with this object.
if the current object is equal to the other parameter; otherwise, .
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.
if the objects are equal; otherwise, .
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.
if the current object is equal to the other parameter; otherwise, .
Checks if the specified is equal to the current .
The to compare with the current .
if the specified is equal to the current ; otherwise, .
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.
is .
if the specified is equal to the current ; otherwise, .
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.
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.
is greater than or equal to or less than zero.
The zero-based index position of from the beginning of the if that character is found, or -1 if it is not.
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.
or is less than zero, or + is
greater than .
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.
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 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.
is greater than or equal to or less than zero.
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 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.
is .
or is less than zero, or + is
greater than .
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.
Indicates whether the specified is null or an Empty string.
The to test.
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.
Checks if two specified have the same value.
The first to compare, or .
The second to compare, or .
if the value of is the same as the value of ; otherwise, .
Creates a see from the given .
The to convert to a .
Creates a see from the given .
The to convert to a .
Creates a new from the given .
The to convert to a
Checks if two specified have different values.
The first to compare, or .
The second to compare, or .
if the value of is different from the value of ; otherwise, .
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 .
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.
is .
if matches the beginning of this ; otherwise, .
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 .
is greater than or equal to or less than zero.
A that begins at in this
whose length is the remainder.
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.
or is less than zero, or + is
greater than .
A that is equivalent to the substring of length that begins at in this
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 .
is greater than or equal to or less than zero.
A that is equivalent to the substring of remaining length that begins at
in this
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.
or is less than zero, or + is
greater than .
A that is equivalent to the substring of length that begins at
in this
Returns the represented by this or if the does not contain a value.
The represented by this or if the does not contain a value.
Removes all leading and trailing whitespaces.
The trimmed .
Removes all trailing whitespaces.
The trimmed .
Removes all leading whitespaces.
The trimmed .
Gets the buffer for this .
The buffer for this .
Gets whether this contains a valid value.
if the contains a valid value; otherwise.
Gets the at a specified position in the current .
The offset into the
is greater than or equal to or less than zero.
The at a specified position.
Gets the length of this .
The length of this .
Gets the offset within the buffer for this .
The offset within the buffer for this .
Gets the value of this segment as a .
The value of this segment as a .
Compares two objects and returns a value indicating whether one is less than, equal to, or greater than the other.
The first object to compare.
The second object to compare.
A signed integer that indicates the relative values of and .
Determines whether the specified objects are equal.
The first object of type to compare.
The second object of type to compare.
if the specified objects are equal; otherwise, .
Returns a hash code for the specified object.
The for which a hash code is to be returned.
A hash code for the specified object.
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.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Returns an enumerator that iterates through a collection.
An object that can be used to iterate through the collection.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Advances the enumerator to the next element of the collection.
if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the collection.
Sets the enumerator to its initial position, which is before the first element in the collection.
Gets the element in the collection at the current position of the enumerator.
The element in the collection at the current position of the enumerator.
Gets the element in the collection at the current position of the enumerator.
The element in the collection at the current position of the enumerator.
Represents zero/null, one, or many strings in an efficient way.
A readonly instance of the struct whose value is an empty string array.
Initializes a new instance of the structure using the specified string.
A string value or .
Initializes a new instance of the structure using the specified array of strings.
A string array.
Concatenates two specified instances of .
The first to concatenate.
The second to concatenate.
The concatenation of and .
Concatenates specified instance of with specified .
The to concatenate.
The string to concatenate.
The concatenation of and .
Concatenates specified instance of with specified .
The string to concatenate.
The to concatenate.
The concatenation of and .
Determines whether this instance and another specified object have the same values.
The string to compare to this instance.
if the value of is the same as the value of this instance; otherwise, .
Determines whether two specified objects have the same values in the same order.
The first to compare.
The second to compare.
if the value of is the same as the value of ; otherwise, .
Determines whether the specified and objects have the same values.
The to compare.
The to compare.
if the value of is the same as the value of ; otherwise, . If is , the method returns .
Determines whether the specified and string array objects have the same values.
The to compare.
The string array to compare.
if the value of is the same as the value of ; otherwise, .
Determines whether this instance and a specified object have the same value.
An object to compare with this object.
if the current object is equal to ; otherwise, .
Determines whether this instance and a specified string have the same value.
The string to compare to this instance.
if the value of is the same as this instance; otherwise, . If is , returns .
Determines whether the specified and objects have the same values.
The string to compare.
The to compare.
if the value of is the same as the value of ; otherwise, . If is , the method returns .
Determines whether this instance and a specified string array have the same values.
The string array to compare to this instance.
if the value of is the same as this instance; otherwise, .
Determines whether the specified string array and objects have the same values.
The string array to compare.
The to compare.
if the value of is the same as the value of ; otherwise, .
Retrieves an object that can iterate through the individual strings in this .
An enumerator that can be used to iterate through the .
Indicates whether the specified contains no string values.
The to test.
if value contains a single string or empty array; otherwise, .
Determines whether two specified have the same values.
The first to compare.
The second to compare.
if the value of is the same as the value of ; otherwise, .
Determines whether the specified and , which must be a , , or array of , have the same value.
The to compare.
The to compare.
if the object is equal to the ; otherwise, .
Determines whether the specified , which must be a , , or array of , and specified , have the same value.
The to compare.
The to compare.
if the object is equal to the ; otherwise, .
Defines an implicit conversion of a given to a string, with multiple values joined as a comma separated string.
A to implicitly convert.
Returns where has been initialized from an empty string array or is . Otherwise, it returns the implicit conversion of to a string.
Defines an implicit conversion of a given to a string array.
A to implicitly convert.
Defines an implicit conversion of a given string to a .
A string to implicitly convert.
Defines an implicit conversion of a given string array to a .
A string array to implicitly convert.
Determines whether two specified have different values.
The first to compare.
The second to compare.
if the value of is different to the value of ; otherwise, .
Determines whether the specified and , which must be a , , or array of , have different values.
The to compare.
The to compare.
if the object is equal to the ; otherwise, .
Determines whether the specified and objects have different values.
The to compare.
The to compare.
if the value of is different to the value of ; otherwise, .
Determines whether the specified and string array have different values.
The to compare.
The string array to compare.
if the value of is different to the value of ; otherwise, .
Determines whether the specified and object have the same values.
The to compare.
The to compare.
if the object is equal to the ; otherwise, .
Determines whether the specified and objects have different values.
The string to compare.
The to compare.
if the value of is different to the value of ; otherwise, .
Determines whether the specified string array and have different values.
The string array to compare.
The to compare.
if the value of is different to the value of ; otherwise, .
Adds an item to the collection.
The object to add to the collection.
Removes all items from the collection.
Determines whether a string is in the .
The string to locate in the .
if is found in the ; otherwise, .
Copies the entire to a string array, starting at the specified index of the target array.
The one-dimensional that is the destination of the elements copied from. The must have zero-based indexing.
The zero-based index in the destination array at which copying begins.
Removes the first occurrence of a specific object from the collection.
The object to remove from the collection.
if was successfully removed from the collection; otherwise, . This method also returns if is not found in the original collection.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Returns the zero-based index of the first occurrence of an item in the .
The string to locate in the .
the zero-based index of the first occurrence of within the , if found; otherwise, –1.
Inserts an item to the at the specified index.
The zero-based index at which should be inserted.
The object to insert into the .
Removes the item at the specified index.
The zero-based index of the item to remove.
Returns an enumerator that iterates through a collection.
An object that can be used to iterate through the collection.
Creates a string array from the current object.
A string array represented by this instance.
Converts the value of the current object to its equivalent string representation, with multiple values joined as a comma separated string.
A string representation of the value of the current object.
Gets the number of string elements contained in this .
The number of string elements contained in this .
Gets the string at index.
The zero-based index of the element to get.
The string at the specified index.
Gets a value indicating whether the collection is read-only.
if the collection is read-only; otherwise, .
Gets the at index.
The zero-based index of the element to get.
The string at the specified index.
Enumerates the string values of a .
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Advances the enumerator to the next element of the collection.
if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the collection.
Sets the enumerator to its initial position, which is before the first element in the collection.
Gets the element in the collection at the current position of the enumerator.
The element in the collection at the current position of the enumerator.
Gets the element in the collection at the current position of the enumerator.
The element in the collection at the current position of the enumerator.