Microsoft.Extensions.Primitives
A implementation using .
Initializes a new instance of .
The .
Propagates notifications that a change has occured.
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.
Propagates notifications that a change has occured.
Gets a value that indicates if a change has occured.
Indicates if this token will pro-actively raise callbacks. Callbacks are still guaranteed to fire, eventually.
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.
A strongly-typed resource class, for looking up localized strings, etc.
Returns the cached ResourceManager instance used by this class.
Overrides the current thread's CurrentUICulture property for all
resource lookups using this strongly typed resource class.
Looks up a localized string similar to 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..
An optimized representation of a substring.
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.
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 or not this contains a valid value.
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
.
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
.
This GetHashCode is expensive since it allocates on every call.
However this is required to ensure we retain any behavior (such as hash code randomization) that
string.GetHashCode has.
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
.
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
.
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
.
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
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
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.
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.
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.
Removes all leading and trailing whitespaces.
The trimmed .
Removes all leading whitespaces.
The trimmed .
Removes all trailing whitespaces.
The trimmed .
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 string into s.
Initializes a new instance of .
The string to tokenize.
The characters to tokenize by.
Represents zero/null, one, or many strings in an efficient way.