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 . Provides extensions methods for the namespace. 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. Provides a mechanism for fast, non-allocating string concatenation. Initializes a new instance of the class. The suggested starting size of the instance. Gets the number of characters that the current object can contain. Appends a string to the end of the current instance. The string to append. Appends a string segment to the end of the current instance. The string segment to append. Appends a substring to the end of the current instance. The string that contains the substring to append. The starting position of the substring within value. The number of characters in value to append. Appends a character to the end of the current instance. The character to append. Converts the value of this instance to a String. A string whose value is the same as this instance. 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 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 that starts at the position specified by , and has the remaining length. The zero-based starting character position in this . A with the remaining chars that begins at in this . is greater than or equal to or less than zero. Gets a from the current that starts at the position specified by , and has the specified . The zero-based starting character position in this . The number of characters in the span. A with that begins at in this . or is less than zero, or + is greater than . 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. if the current object is equal to the other parameter; 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, . 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, . 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, . 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. if the specified is equal to the current ; otherwise, . Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. 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, . 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, . 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. if matches the beginning of this ; otherwise, . is . 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. if matches the end of this ; otherwise, . is . 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 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 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 . 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 if the does not contain a value. The represented by this or if the does not contain a value. Compares two objects. Gets a object that performs a case-sensitive ordinal comparison. Gets a object that performs a case-insensitive ordinal comparison. Compares two objects and returns an indication of their relative sort order. The first to compare. The second to compare. A 32-bit signed integer that indicates the lexical relationship between the two comparands. Determines whether two objects are equal. The first to compare. The second to compare. if the two objects are equal; otherwise, . Returns a hash code for a object. The to get a hash code for. A hash code for a , suitable for use in hashing algorithms and data structures like a hash table. 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. Initializes a new instance of . An based on the 's value and separators. Enumerates the tokens represented by . Initializes an using a . containing value and separators for enumeration. Gets the current from the . Releases all resources used by the . Advances the enumerator to the next token in the . if the enumerator was successfully advanced to the next token; if the enumerator has passed the end of the . Resets the to its initial state. Represents zero/null, one, or many strings in an efficient way. A readonly instance of the struct whose value is an empty string array. In application code, this field is most commonly used to safely represent a that has null string values. Initializes a new instance of the structure using the specified string. A string value or null. Initializes a new instance of the structure using the specified array of strings. A string array. 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. Defines an implicit conversion of a given to a string, with multiple values joined as a comma separated string. Returns null where has been initialized from an empty string array or is . A to implicitly convert. Defines an implicit conversion of a given to a string array. A to implicitly convert. Gets the number of elements contained in this . Gets the at index. The string at the specified index. The zero-based index of the element to get. Set operations are not supported on readonly . Gets the at index. The string at the specified index. The zero-based index of the element to get. 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. Creates a string array from the current object. A string array represented by this instance. If the contains a single string internally, it is copied to a new array. If the contains an array internally it returns that array instance. 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. Determines whether a string is in the . The to locate in the . true if item is found in the ; otherwise, false. 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. array is null. arrayIndex is less than 0. The number of elements in the source is greater than the available space from arrayIndex to the end of the destination array. 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. true if value contains a single null or empty string or an empty array; otherwise, false. 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 to concatenate. The concatenation of and . Concatenates specified instance of with specified . The to concatenate. The to concatenate. The concatenation of and . Determines whether two specified objects have the same values in the same order. The first to compare. The second to compare. true if the value of is the same as the value of ; otherwise, false. Determines whether two specified have the same values. The first to compare. The second to compare. true if the value of is the same as the value of ; otherwise, false. Determines whether two specified have different values. The first to compare. The second to compare. true if the value of is different to the value of ; otherwise, false. Determines whether this instance and another specified object have the same values. The string to compare to this instance. true if the value of is the same as the value of this instance; otherwise, false. Determines whether the specified and objects have the same values. The to compare. The to compare. true if the value of is the same as the value of ; otherwise, false. If is null, the method returns false. Determines whether the specified and objects have the same values. The to compare. The to compare. true if the value of is the same as the value of ; otherwise, false. If is null, the method returns false. Determines whether this instance and a specified , have the same value. The to compare to this instance. true if the value of is the same as this instance; otherwise, false. If is null, returns false. Determines whether the specified string array and objects have the same values. The string array to compare. The to compare. true if the value of is the same as the value of ; otherwise, false. Determines whether the specified and string array objects have the same values. The to compare. The string array to compare. true if the value of is the same as the value of ; otherwise, false. Determines whether this instance and a specified string array have the same values. The string array to compare to this instance. true if the value of is the same as this instance; otherwise, false. Determines whether the specified and objects have different values. The to compare. The to compare. true if the value of is different to the value of ; otherwise, false. Determines whether the specified and objects have different values. The to compare. The to compare. true if the value of is different to the value of ; otherwise, false. Determines whether the specified and string array have different values. The to compare. The string array to compare. true if the value of is different to the value of ; otherwise, false. Determines whether the specified string array and have different values. The string array to compare. The to compare. true if the value of is different to the value of ; otherwise, false. Determines whether the specified and , which must be a , , or array of , have the same value. The to compare. The to compare. true if the object is equal to the ; otherwise, false. Determines whether the specified and , which must be a , , or array of , have different values. The to compare. The to compare. true if the object is equal to the ; otherwise, false. Determines whether the specified , which must be a , , or array of , and specified , have the same value. The to compare. The to compare. true if the object is equal to the ; otherwise, false. Determines whether the specified and object have the same values. The to compare. The to compare. true if the object is equal to the ; otherwise, false. Determines whether this instance and a specified object have the same value. An object to compare with this object. true if the current object is equal to ; otherwise, false. Returns a hash code for this instance. A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. Enumerates the string values of a . Instantiates an using a . The to enumerate. Advances the enumerator to the next element of the . if the enumerator was successfully advanced to the next element; if the enumerator has passed the end of the . Gets the element at the current position of the enumerator. Releases all resources used by the . Registers for a callback that will be invoked when the entry has changed. MUST be set before the callback is invoked. The callback to invoke. State to be passed into the callback. The to invoke the callback with. The action to execute when an is thrown. Should be used to set the IChangeToken's ActiveChangeCallbacks property to false. The state to be passed into the action. The registration. Get a pinnable reference to the builder. Does not ensure there is a null char after This overload is pattern matched in the C# 7.3+ compiler so you can omit the explicit method call, and write eg "fixed (char* c = builder)" Get a pinnable reference to the builder. Ensures that the builder has a null char after Returns the underlying storage of the builder. Returns a span around the contents of the builder. Ensures that the builder has a null char after Resize the internal buffer either by doubling current buffer size or by adding to whichever is greater. Number of chars requested beyond current position. 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. Entire reserved capacity was not used. Capacity: '{0}', written '{1}'. Attribute used to indicate a source generator should create a function for marshalling arguments instead of relying on the runtime to generate an equivalent marshalling function at run-time. This attribute is meaningless if the source generator associated with it is not enabled. The current built-in source generator only supports C# and only supplies an implementation when applied to static, partial, non-generic methods. Initializes a new instance of the . Name of the library containing the import. Gets the name of the library containing the import. Gets or sets the name of the entry point to be called. Gets or sets how to marshal string arguments to the method. If this field is set to a value other than , must not be specified. Gets or sets the used to control how string arguments to the method are marshalled. If this field is specified, must not be specified or must be set to . Gets or sets whether the callee sets an error (SetLastError on Windows or errno on other platforms) before returning from the attributed method. Specifies how strings should be marshalled for generated p/invokes Indicates the user is suppling a specific marshaller in . Use the platform-provided UTF-8 marshaller. Use the platform-provided UTF-16 marshaller. Specifies that null is allowed as an input even if the corresponding type disallows it. Specifies that null is disallowed as an input even if the corresponding type allows it. Specifies that an output may be null even if the corresponding type disallows it. Specifies that an output will not be null even if the corresponding type allows it. Specifies that an input argument was not null when the call returns. Specifies that when a method returns , the parameter may be null even if the corresponding type disallows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter may be null. Gets the return value condition. Specifies that when a method returns , the parameter will not be null even if the corresponding type allows it. Initializes the attribute with the specified return value condition. The return value condition. If the method returns this value, the associated parameter will not be null. Gets the return value condition. Specifies that the output will be non-null if the named parameter is non-null. Initializes the attribute with the associated parameter name. The associated parameter name. The output will be non-null if the argument to the parameter specified is non-null. Gets the associated parameter name. Applied to a method that will never return under any circumstance. Specifies that the method will not return if the associated Boolean parameter is passed the specified value. Initializes the attribute with the specified parameter value. The condition parameter value. Code after the method will be considered unreachable by diagnostics if the argument to the associated parameter matches this value. Gets the condition parameter value. Specifies that the method or property will ensure that the listed field and property members have not-null values. Initializes the attribute with a field or property member. The field or property member that is promised to be not-null. Initializes the attribute with the list of field and property members. The list of field and property members that are promised to be not-null. Gets field or property member names. Specifies that the method or property will ensure that the listed field and property members have not-null values when returning with the specified return value condition. Initializes the attribute with the specified return value condition and a field or property member. The return value condition. If the method returns this value, the associated parameter will not be null. The field or property member that is promised to be not-null. Initializes the attribute with the specified return value condition and list of field and property members. The return value condition. If the method returns this value, the associated parameter will not be null. The list of field and property members that are promised to be not-null. Gets the return value condition. Gets field or property member names.