System.Collections.Immutable
Represents an immutable collection of key/value pairs.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of keys in the dictionary.
The type of values in the dictionary.
Adds an element with the specified key and value to the dictionary.
A new immutable dictionary that contains the additional key/value pair.
The key of the element to add.
The value of the element to add.
The given key already exists in the dictionary but has a different value.
Adds the specified key/value pairs to the dictionary.
A new immutable dictionary that contains the additional key/value pairs.
The key/value pairs to add.
One of the given keys already exists in the dictionary but has a different value.
Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
An empty dictionary with equivalent ordering and key/value comparison rules.
Determines whether the immutable dictionary contains the specified key/value pair.
true if the specified key/value pair is found in the dictionary; otherwise, false.
The key/value pair to locate.
Removes the element with the specified key from the immutable dictionary.
A new immutable dictionary with the specified element removed; or this instance if the specified key cannot be found in the dictionary.
The key of the element to remove.
Removes the elements with the specified keys from the immutable dictionary.
A new immutable dictionary with the specified keys removed; or this instance if the specified keys cannot be found in the dictionary.
The keys of the elements to remove.
Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
A new immutable dictionary that contains the specified key/value pair.
The key of the entry to add.
The key value to set.
Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
A new immutable dictionary that contains the specified key/value pairs.
The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.
Determines whether this dictionary contains a specified key.
true if a match for is found; otherwise, false.
The key to search for.
The matching key located in the dictionary if found, or if no match is found.
Represents a list of elements that cannot be modified.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the list.
Makes a copy of the list, and adds the specified object to the end of the copied list.
A new list with the object added, or this list if the object is already in the list.
The object to add to the list.
Makes a copy of the list and adds the specified objects to the end of the copied list.
A new list with the elements added, or this list if the elements already exist in the list.
The objects to add to the list.
Creates a list with all the items removed, but with the same sorting and ordering semantics as this list.
An empty list that has the same sorting and ordering semantics as this instance.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of within the range of elements in the that starts at and contains number of elements if found; otherwise -1.
The object to locate in the . This value can be null for reference types.
The zero-based starting indes of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.
The equality comparer to use to locate .
Inserts the specified element at the specified index in the immutable list.
A new immutable list that includes the specified element.
The zero-based index at which to insert the value.
The object to insert.
Inserts the specified elements at the specified index in the immutable list.
A new immutable list that includes the specified elements.
The zero-based index at which the new elements should be inserted.
The elements to insert.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the that contains the specified number of elements and ends at the specified index.
Returns .
The object to locate in the list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.
The equality comparer to match .
Removes the first occurrence of a specified object from this immutable list.
Returns a new list with the specified object removed.
The object to remove from the list.
The equality comparer to use to locate .
Removes all the elements that match the conditions defined by the specified predicate.
A new immutable list with the elements removed.
The delegate that defines the conditions of the elements to remove.
Removes the element at the specified index of the immutable list.
A new list with the element removed.
The index of the element to remove.
Removes the specified object from the list.
A new immutable list with the specified objects removed, if matched objects in the list.
The objects to remove from the list.
The equality comparer to use to determine if match any objects in the list.
Removes a range of elements from the .
A new immutable list with the elements removed.
The zero-based starting index of the range of elements to remove.
The number of elements to remove.
Returns a new list with the first matching element in the list replaced with the specified element.
A new list that contains , even if is the same as .
The element to be replaced.
The element to replace the the first occurrence of with
The equality comparer to use for matching .
does not exist in the list.
Replaces an element in the list at a given position with the specified element.
A new list that contains the new element, even if the element at the specified location is the same as the new element.
The position in the list of the element to replace.
The element to replace the old element with.
Represents an immutable first-in, first-out collection of objects.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the queue.
Returns a new queue with all the elements removed.
An empty immutable queue.
Removes the first element in the immutable queue, and returns the new queue.
The new immutable queue with the first element removed. This value is never null.
Adds an element to the end of the immutable queue, and returns the new queue.
The new immutable queue with the specified element added.
The element to add.
Gets a value that indicates whether this immutable queue is empty.
true if this queue is empty; otherwise, false.
Returns the element at the beginning of the immutable queue without removing it.
The element at the beginning of the queue.
Represents a set of elements that can only be modified by creating a new instance of the set.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of element stored in the set.
Adds the specified element to this immutable set.
A new set with the element added, or this set if the element is already in the set.
The element to add.
Retrieves an empty immutable set that has the same sorting and ordering semantics as this instance.
An empty set that has the same sorting and ordering semantics as this instance.
Determines whether this immutable set contains a specified element.
true if the set contains the specified value; otherwise, false.
The element to locate in the set.
Removes the elements in the specified collection from the current immutable set.
A new set with the items removed; or the original set if none of the items were in the set.
The collection of items to remove from this set.
Creates an immutable set that contains only elements that exist in this set and the specified set.
A new immutable set that contains elements that exist in both sets.
The collection to compare to the current .
Determines whether the current immutable set is a proper (strict) subset of the specified collection.
true if the current set is a proper subset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable set is a proper (strict) superset of the specified collection.
true if the current set is a proper superset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable set is a subset of a specified collection.
true if the current set is a subset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable set is a superset of a specified collection.
true if the current set is a superset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable set overlaps with the specified collection.
true if the current set and the specified collection share at least one common element; otherwise, false.
The collection to compare to the current set.
Removes the specified element from this immutable set.
A new set with the specified element removed, or the current set if the element cannot be found in the set.
The element to remove.
Determines whether the current immutable set and the specified collection contain the same elements.
true if the sets are equal; otherwise, false.
The collection to compare to the current set.
Creates an immutable set that contains only elements that are present either in the current set or in the specified collection, but not both.
A new set that contains the elements that are present only in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Determines whether the set contains a specified value.
true if a matching value was found; otherwise, false.
The value to search for.
The matching value from the set, if found, or if there are no matches.
Creates a new immutable set that contains all elements that are present in either the current set or in the specified collection.
A new immutable set with the items added; or the original set if all the items were already in the set.
The collection to add elements from.
Represents an immutable last-in-first-out (LIFO) collection.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the stack.
Removes all objects from the immutable stack.
An empty immutable stack.
Gets a value that indicates whether this immutable stack is empty.
true if this stack is empty; otherwise,false.
Returns the element at the top of the immutable stack without removing it.
The element at the top of the stack.
Removes the element at the top of the immutable stack and returns the new stack.
The new stack; never null
Inserts an element at the top of the immutable stack and returns the new stack.
The new stack.
The element to push onto the stack.
Provides methods for creating an array that is immutable; meaning it cannot be changed once it is created.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Searches a sorted immutable array for a specified element and returns the zero-based index of the element, if it’s found.
The zero-based index of the item in the array, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than or, if there is no larger element, the bitwise complement of .
The sorted array to search.
The starting index of the range to search.
The length of the range to search.
The object to search for.
The type of element stored in the array.
does not implement or the search encounters an element that does not implement .
Searches a sorted immutable array for a specified element and returns the zero-based index of the element.
The zero-based index of the item in the array, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than or, if there is no larger element, the bitwise complement of .
The sorted array to search.
The starting index of the range to search.
The length of the range to search.
The object to search for.
The comparer to use when comparing elements for equality or null to use the default comparer.
The type of element stored in the array.
is null and does not implement or the search encounters an element that does not implement .
Searches the sorted immutable array for a specified element using the default comparer and returns the zero-based index of the element, if it’s found.
The zero-based index of the item in the array, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than or, if there is no larger element, the bitwise complement of .
The sorted array to search.
The object to search for.
The type of element stored in the array.
does not implement or the search encounters an element that does not implement .
Searches a sorted immutable array for a specified element and returns the zero-based index of the element, if it’s found.
The zero-based index of the item in the array, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than or, if there is no larger element, the bitwise complement of .
The sorted array to search.
The object to search for.
The comparer implementation to use when comparing elements, or null to use the default comparer.
The type of element stored in the array.
is null and does not implement or the search encounters an element that does not implement .
Creates an empty immutable array.
An empty immutable array.
The type of elements stored in the array.
Creates an immutable array with the specified objects from another immutable array.
An immutable array that contains the specified objects from the source array.
The source array of objects.
The index of the first element to copy from .
The number of elements from to include in this immutable array.
The type of elements stored in the array.
Initializes a new instance of the from the contents of the specified array, using a covariant static cast to reuse the existing array.
An that contains elements of type , cast up from type .
The array to initialize the array with. No copy is made.
The type of the elements in the array.
The type derived from T that will be cast to type T and stored in the array.
Creates an with the specified blittable elements from another array.
A new immutable array containing the specified blittable elements from the source array.
The array to initialize the array with.
The number of elements from the source array to include in the resulting array.
The type of elements in the array. This type must be blittable, meaning the type does not require conversion when passed between managed or unmanaged code.
If the type is not a blittable type.
Creates an immutable array that contains the specified object.
Returns an immutable array that contains the specified object.
The object to store in the array.
The type of elements stored in the array.
Creates an immutable array that contains the specified objects.
Returns an immutable array that contains the specified objects.
The first object to store in the array.
The second object to store in the array.
The type of elements stored in the array.
Creates an immutable array that contains the specified objects.
An immutable array that contains the specified objects.
The first object to store in the array.
The second object to store in the array.
The third object to store in the array.
The type of elements stored in the array.
Creates an immutable array that contains the specified objects.
An immutable array that contains the specified objects.
The first object to store in the array.
The second object to store in the array.
The third object to store in the array.
The fourth object to store in the array.
The type of elements stored in the array.
Creates an immutable array from the specified array of objects.
An immutable array that contains the array of items.
The array of objects to populate the array with.
The type of elements stored in the array.
Creates an immutable array with specified objects from another array.
An immutable array that contains the specified objects from the source array.
The source array of objects.
The index of the first element to copy from .
The number of elements from to include in this immutable array.
The type of elements stored in the array.
Creates a mutable array that can be converted to an without allocating new memory.
A mutable array of the specified type that can be efficiently converted to an immutable array.
The type of elements stored in the builder.
Creates a mutable array that can be converted to an without allocating new memory.
A mutable array of the specified type that can be efficiently converted to an immutable array.
The initial capacity of the builder.
The type of elements stored in the builder.
Creates a new populated with the specified items.
An immutable array that contains the specified items.
The elements to add to the array.
The type of element stored in the array.
Creates an immutable array from the specified collection.
An immutable array that contains the specified collection of objects.
The collection of objects to copy to the immutable array.
The type of elements contained in .
Represents an array that is immutable; meaning it cannot be changed once it is created.
The type of element stored by the array.
Returns a copy of the original array with the specified item added to the end.
A new array with the specified item added to the end.
The item to be added to the end of the array.
Returns a copy of the original array with the specified elements added to the end of the array.
A new array with the elements added.
The elements to add to the array.
Returns a copy of the original array with the specified elements added to the end of the array.
A new array with the elements added.
The elements to add to the array.
Returns a new immutable array that contains the elements of this array cast to a different type.
An immutable array that contains the elements of this array, cast to a different type. If the cast fails, returns an array whose property returns true.
The type of array element to return.
Returns an array with all the elements removed.
An array with all of the elements removed.
Determines whether the specified item exists in the array.
true if the specified item was found in the array; otherwise false.
The item to search for.
Copies the specified items in this array to the specified array at the specified starting index.
The index of this array where copying begins.
The array to copy to.
The index in where copying begins.
The number of elements to copy from this array.
Copies the contents of this array to the specified array.
The array to copy to.
Copies the contents of this array to the specified array starting at the specified destination index.
The array to copy to.
The index in where copying begins.
Gets an empty immutable array.
Indicates whether specified array is equal to this array.
true if is equal to this array; otherwise, false.
An object to compare with this object.
Determines if this array is equal to the specified object.
true if this array is equal to ; otherwise, false.
The to compare with this array.
Returns an enumerator that iterates through the contents of the array.
An enumerator.
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.
Searches the array for the specified item.
The zero-based index position of the item if it is found, or -1 if it is not.
The item to search for.
Searches the array for the specified item.
The zero-based index position of the item if it is found, or -1 if it is not.
The item to search for.
The index at which to begin the search.
Searches the array for the specified item.
The zero-based index position of the item if it is found, or -1 if it is not.
The item to search for.
The index at which to begin the search.
The equality comparer to use in the search.
Searches the array for the specified item.
The zero-based index position of the item if it is found, or -1 if it is not.
The item to search for.
The index at which to begin the search.
The number of elements to search.
Searches the array for the specified item.
The zero-based index position of the item if it is found, or -1 if it is not.
The item to search for.
The index at which to begin the search.
The number of elements to search.
The equality comparer to use in the search.
Returns a new array with the specified value inserted at the specified position.
A new array with the item inserted at the specified index.
The 0-based index into the array at which the new item should be added.
The item to insert at the start of the array.
Inserts the specified values at the specified index.
A new immutable array with the items inserted at the specified index.
The index at which to insert the value.
The elements to insert.
Inserts the specified values at the specified index.
A new immutable array with the items inserted at the specified index.
The index at which to insert the value.
The elements to insert.
Gets a value indicating whether this array was declared but not initialized.
true to indicate the is null; otherwise, false.
Gets a value indicating whether this is empty or is not initialized.
true to indicate the is null or ; otherwise, false.
Gets a value indicating whether this is empty.
true to indicate the is empty; otherwise, false.
Gets the element at the specified index in the immutable array.
The element at the specified index in the immutable array.
The zero-based index of the element to get.
Searches the array for the specified item; starting at the end of the array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
Searches the array for the specified item; starting at the end of the array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The index at which to begin the search.
Searches the array for the specified item; starting at the end of the array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The index at which to begin the search.
The number of elements to search.
Searches the array for the specified item; starting at the end of the array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The index at which to begin the search.
The number of elements to search.
The equality comparer to use in the search.
Gets the number of elements in the array.
The number of elements in the array
Filters the elements of this array to those assignable to the specified type.
An that contains elements from the input sequence of type of .
The type to filter the elements of the sequence on.
Returns a value that indicates if two arrays are equal.
true if the arrays are equal; otherwise, false.
The array to the left of the operator.
The array to the right of the operator.
Returns a value that indicates if two arrays are equal.
true if the arrays are equal; otherwise, false.
The array to the left of the operator.
The array to the right of the operator.
Returns a value that indicates whether two arrays are not equal.
true if the arrays are not equal; otherwise, false.
The array to the left of the operator.
The array to the right of the operator.
Checks for inequality between two array.
true if the two arrays are not equal; otherwise, false.
The object to the left of the operator.
The object to the right of the operator.
Returns an array with the first occurrence of the specified element removed from the array. If no match is found, the current array is returned.
A new array with the item removed.
The item to remove.
Returns an array with the first occurrence of the specified element removed from the array. If no match is found, the current array is returned.
A new array with the specified item removed.
The item to remove.
The equality comparer to use in the search.
Removes all the items from the array that meet the specified condition.
A new array with items that meet the specified condition removed.
The delegate that defines the conditions of the elements to remove.
Returns an array with the element at the specified position removed.
A new array with the item at the specified index removed.
The 0-based index of the element to remove from the returned array.
Removes the specified items from this array.
A new array with the elements removed.
The items to remove if matches are found in this list.
Removes the specified items from this array.
A new array with the elements removed.
The items to remove if matches are found in this list.
The equality comparer to use in the search.
Removes the specified values from this list.
A new list with the elements removed.
The items to remove if matches are found in this list.
Removes the specified items from this list.
A new array with the elements removed.
The items to remove if matches are found in this list.
The equality comparer to use in the search.
Returns an array with the elements at the specified position removed.
The new array with the specified elements removed.
The 0-based index of the starting element to remove from the array.
The number of elements to remove from the array.
Finds the first element in the array equal to the specified value and replaces the value with the specified new value.
A new array that contains even if the new and old values are the same.
The value to find and replace in the array.
The value to replace the with.
is not found in the array.
Finds the first element in the array equal to the specified value and replaces the value with the specified new value.
A new array that contains even if the new and old values are the same.
The value to find and replace in the array.
The value to replace the with.
The equality comparer to use to compare values.
is not found in the array.
Replaces the item at the specified index with the specified item.
The new array that contains at the specified index.
The index of the item to replace.
The item to add to the list.
Sorts the elements in the immutable array using the default comparer.
A new immutable array that contains the items in this array, in sorted order.
Sorts the elements in the immutable array using the specified comparer.
A new immutable array that contains the items in this array, in sorted order.
The implementation to use when comparing elements, or null to use the default comparer
Sorts the specified elements in the immutable array using the specified comparer.
A new immutable array that contains the items in this array, in sorted order.
The index of the first element to sort.
The number of elements to include in the sort.
The implementation to use when comparing elements, or null to use the default comparer
Throws in all cases.
The item to add to the end of the array.
Throws in all cases.
Gets the number elements in the array.
The number of elements in the array.
Gets a value indicating whether this array is read only.
Always returns true..
Throws in all cases.
Throws in all cases.
The object to remove from the array.
Returns an enumerator that iterates through the array.
An enumerator that can be used to iterate through the array.
Throws in all cases.
The index of the location to insert the item.
The item to insert.
Gets the element at the specified index in the immutable array.
The element at the specified index in the immutable array.
The zero-based index of the element to get.
Always thrown when you attempt to set this value.
Throws in all cases.
The index.
Gets the number of elements in the collection.
The number of elements in the collection.
Copies this array to another array starting at the specified index.
The array to copy this array to.
The index in the destination array to start the copy operation.
Gets the number of elements in the array.
The number of elements in the array.
Gets a value indicating whether access to the collection is synchronized (thread safe).
true in all cases.
Gets an object that can be used to synchronize access to the array.
Returns this array because the array is immutable and always synchronized.
Returns an enumerator that iterates through the immutable array.
An enumerator that iterates through the immutable array.
Throws in all cases.
Throws in all cases.
The value to add to the array.
Throws in all cases.
Throws in all cases.
Throws in all cases.
The value to check for.
Gets the value at the specified index.
The value of the element at the specified index.
The value to return the index of.
Throws in all cases.
Index that indicates where to insert the item.
The value to insert.
Gets a value indicating whether the array has a fixed size.
true in all cases.
Gets a value indicating whether the array is read-only.
true in all cases.
Gets the at the specified index.
The index of the item to get or set.
The item is set.
Throws in all cases.
The value to remove from the array.
Throws in all cases.
The index of the item to remove.
Returns a copy of the original array with the specified item added to the end.
A new array with the specified item added to the end.
The value to add to the end of the array.
Returns a copy of the original array with the specified elements added to the end of the array.
A new array with the elements added to the end.
The elements to add to the end of the array.
Returns an array with all the elements removed.
Returns an array with all the elements removed.
Returns a new array with the specified value inserted at the specified position.
A new array with the specified value inserted.
The 0-based index into the array at which the new item should be added.
The item to insert at the start of the array.
Inserts the specified values at the specified index
A new array with the specified values inserted.
The index at which to insert the value.
The elements to insert.
Returns an array with the first occurrence of the specified element removed from the array; if no match is found, the current array is returned.
A new array with the value removed.
The value to remove from the array.
The equality comparer to use in the search.
Removes all the items from the array that meet the specified condition.
A new array with items that meet the specified condition removed.
The delegate that defines the conditions of the elements to remove.
Returns an array with the element at the specified position removed.
A new array with the specified item removed.
The 0-based index of the element to remove from the returned array.
Removes the specified items from this array.
A new array with the elements removed.
The items to remove if matches are found in this list.
The equality comparer to use in the search.
Returns an array with the elements at the specified position removed.
The new array with the specified elements removed.
The 0-based index of the starting element to remove from the array.
The number of elements to remove from the array.
Finds the first element in the array equal to the specified value and replaces the value with the specified new value.
A new array that contains even if the new and old values are the same.
The value to find and replace in the array.
The value to replace the with.
The equality comparer to use to compare values.
is not found in the array.
Replaces the item at the specified index with the specified item.
The new array that contains at the specified index.
The index of the item to replace.
The value to add to the list.
Determines whether the current collection element precedes, occurs in the same position as, or follows another element in the sort order.
An integer that indicates whether the current element precedes, is in the same position or follows the other element.
The element to compare with the current instance.
The object used to compare members of the current array with the corresponding members of other array.
The arrays are not the same length.
Determines whether this array is structurally equal to the specified array.
true if the two arrays are structurally equal; otherwise, false.
The array to compare with the current instance.
An object that determines whether the current instance and other are structurally equal.
Returns a hash code for the current instance.
The hash code for the current instance.
An object that computes the hash code of the current object.
Creates a mutable array that has the same contents as this array and can be efficiently mutated across multiple operations using standard mutable interfaces.
The new builder with the same contents as this array.
A writable array accessor that can be converted into an instance without allocating extra memory.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds the specified item to the array.
The object to add to the array.
Adds the specified items to the end of the array.
The items to add to the array.
Adds the specified items to the end of the array.
The items to add to the array.
Adds the specified items to the end of the array.
The items to add to the array.
The number of elements from the source array to add.
Adds the specified items to the end of the array.
The items to add to the array.
Adds the specified items that derive from the type currently in the array, to the end of the array
The items to add to the end of the array.
The type that derives from the type of item already in the array.
Adds the specified items that derive from the type currently in the array, to the end of the array.
The items to add to the end of the array.
The type that derives from the type of item already in the array.
Adds the specified items to the end of the array.
The items to add to the array.
Adds the specified items to the end of the array.
The items to add to the array.
The number of elements from the source array to add.
Adds the specified items that derive from the type currently in the array, to the end of the array.
The items to add to end of the array.
The type that derives from the type of item already in the array.
Removes all items from the array.
Determines whether the array contains a specific value.
true if the object is found; otherwise, false.
The object to locate in the array.
Copies the current contents to the specified array.
The array to copy to.
The index to start the copy operation.
Gets or sets the number of items in the array.
The number of items in the array.
Resizes the array to accommodate the specified capacity requirement.
The required capacity.
Gets an object that can be used to iterate through the collection.
An object that can be used to iterate through the collection.
Determines the index of a specific item in the array.
The index of if it’s found in the list; otherwise, -1.
The item to locate in the array.
Determines the index of the specified item.
The index of if it’s found in the list; otherwise, -1.
The item to locate in the array.
The starting position of the search.
Determines the index of the specified item.
The index of if it’s found in the list; otherwise, -1.
The item to locate in the array.
The starting position of the search.
The number of elements to search.
Determines the index for the specified item.
The index of if it’s found in the list; otherwise, -1.
The item to locate in the array.
The index at which to begin the search.
The starting position of the search.
The equality comparer to use in the search
Inserts an item in the array at the specified index.
The zero-based index at which to insert the item.
The object to insert into the array.
Gets or sets the item at the specified index.
The item at the specified index.
The index of the item to get or set.
The specified index is not in the array.
Determines the 0-based index of the last occurrence of the specified item in this array.
The 0-based index where the item was found; or -1 if it could not be found.
The item to search for.
Determines the 0-based index of the last occurrence of the specified item in this array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The starting position of the search.
Determines the 0-based index of the last occurrence of the specified item in this array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The starting position of the search.
The number of elements to search.
Determines the 0-based index of the last occurrence of the specified item in this array.
The 0-based index into the array where the item was found; or -1 if it could not be found.
The item to search for.
The starting position of the search.
The number of elements to search.
The equality comparer to use in the search.
Removes the specified element.
true if was found and removed; otherwise, false.
The item to remove.
Removes the item at the specified index from the array.
The zero-based index of the item to remove.
Reverses the order of elements in the array.
Sorts the contents of the array.
Sorts the contents of the array.
The comparer to use for sorting. If comparer is null, the default comparer for the elements type in the array is used.
Sorts the contents of the array.
The starting index for the sort.
The number of elements to include in the sort.
The comparer to use for sorting. If comparer is null, the default comparer for the elements type in the array is used.
Gets a value indicating whether the is read-only.
Always returns false.
Returns an enumerator that iterates through the array.
An enumerator that iterates through the array.
Returns an enumerator that iterates through the array.
An enumerator that iterates through the array.
Creates a new array with the current contents of this .
A new array with the contents of this .
Returns an immutable array that contains the current contents of this .
An immutable array that contains the current contents of this .
An array enumerator.
Gets the currently item.
The current item.
Advances to the next value in the array.
true if another item exists in the array; otherwise, false.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Determines whether the specified immutable dictionary contains the specified key/value pair.
true if this map contains the specified key/value pair; otherwise, false.
The immutable dictionary to search.
The key to locate in the immutable dictionary.
The value to locate on the specified key, if the key is found.
The type of the keys in the immutable dictionary.
The type of the values in the immutable dictionary.
Creates an empty immutable dictionary.
An empty immutable dictionary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates an empty immutable dictionary that uses the specified key comparer.
An empty immutable dictionary.
The implementation to use to determine the equality of keys in the dictionary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates an empty immutable dictionary that uses the specified key and value comparers.
An empty immutable dictionary.
The implementation to use to determine the equality of keys in the dictionary.
The implementation to use to determine the equality of values in the dictionary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable dictionary builder.
The new builder.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable dictionary builder.
The new builder.
The key comparer.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable dictionary builder.
The new builder.
The key comparer.
The value comparer.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable dictionary that contains the specified items.
A new immutable dictionary that contains the specified items.
The items used to populate the dictionary before it’s immutable.
The type of keys in the dictionary.
The type of values in the dictionary.
Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.
A new immutable dictionary that contains the specified items and uses the specified comparer.
The comparer implementation to use to compare keys for equality.
The items to add to the dictionary before it’s immutable.
The type of keys in the dictionary.
The type of values in the dictionary.
Creates a new immutable dictionary that contains the specified items and uses the specified key comparer.
A new immutable dictionary that contains the specified items and uses the specified comparer.
The comparer implementation to use to compare keys for equality.
The comparer implementation to use to compare values for equality.
The items to add to the dictionary before it’s immutable.
The type of keys in the dictionary.
The type of values in the dictionary.
Gets the value for a given key if a matching key exists in the dictionary.
The value for the key, or default(TValue) if no matching key was found.
The dictionary to retrieve the value from.
The key to search for.
The type of the key.
The type of the value.
Gets the value for a given key if a matching key exists in the dictionary.
The value for the key, or if no matching key was found.
The dictionary to retrieve the value from.
The key to search for.
The default value to return if no matching key is found in the dictionary.
The type of the key.
The type of the value.
Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents.
An immutable dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key comparer.
An immutable dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The key comparer to use when building the immutable dictionary.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key and value comparers.
An immutable dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The key comparer to use when building the immutable dictionary.
The value comparer to use for the immutable dictionary.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Constructs an immutable dictionary from an existing collection of elements, applying a transformation function to the source keys.
The immutable dictionary that contains elements from , with keys transformed by applying .
The source collection used to generate the immutable dictionary.
The function used to transform keys for the immutable dictionary.
The type of element in the source collection.
The type of key in the resulting immutable dictionary.
Constructs an immutable dictionary based on some transformation of a sequence.
The immutable dictionary that contains elements from , with keys transformed by applying .
The source collection used to generate the immutable dictionary.
The function used to transform keys for the immutable dictionary.
The key comparer to use for the dictionary.
The type of element in the source collection.
The type of key in the resulting immutable dictionary.
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents.
An immutable dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key comparer.
An immutable dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The key comparer to use for the dictionary.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Enumerates and transforms a sequence, and produces an immutable dictionary of its contents by using the specified key and value comparers.
An immutable dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The key comparer to use for the dictionary.
The value comparer to use for the dictionary.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Represents an immutable, unordered collection of keys and values.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of the keys in the dictionary.
The type of the values in the dictionary.
Adds an element with the specified key and value to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pair.
The key of the element to add.
The value of the element to add.
The given key already exists in the dictionary but has a different value.
Adds the specified key/value pairs to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pairs.
The key/value pairs to add.
One of the given keys already exists in the dictionary but has a different value.
Retrieves an empty immutable dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
An empty dictionary with equivalent ordering and key/value comparison rules.
Determines whether this immutable dictionary contains the specified key/value pair.
true if the specified key/value pair is found in the dictionary; otherwise, false.
The key/value pair to locate.
Determines whether the immutable dictionary contains an element with the specified key.
true if the immutable dictionary contains an element with the specified key; otherwise, false.
The key to locate.
Determines whether the immutable dictionary contains an element with the specified value.
true if the dictionary contains an element with the specified value; otherwise, false.
The value to locate. The value can be null for reference types.
Gets the number of key/value pairs in the immutable dictionary.
The number of key/value pairs in the dictionary.
Gets an empty immutable dictionary
An empty immutable dictionary.
Returns an enumerator that iterates through the immutable dictionary.
An enumerator that can be used to iterate through the dictionary.
Gets a value that indicates whether this instance of the immutable dictionary is empty.
true if this instance is empty; otherwise, false.
Gets the associated with the specified key.
The value associated with the specified key. If no results are found, the operation throws an exception.
The type of the key.
Gets the key comparer for the immutable dictionary.
The key comparer.
Gets the keys in the immutable dictionary.
The keys in the immutable dictionary.
Removes the element with the specified key from the immutable dictionary.
A new immutable dictionary with the specified element removed; or this instance if the specified key cannot be found in the dictionary.
The key of the element to remove.
Removes the elements with the specified keys from the immutable dictionary.
A new immutable dictionary with the specified keys removed; or this instance if the specified keys cannot be found in the dictionary.
The keys of the elements to remove.
Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
A new immutable dictionary that contains the specified key/value pair.
The key of the entry to add.
The key value to set.
Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
A new immutable dictionary that contains the specified key/value pairs.
The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.
Adds the specified value to the collection.
The value to add.
Removes all the items from the collection.
Copies the elements of the collection to an , starting at a particular index.
The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the immutable dictionary is read-only.
true if the immutable dictionary is read-only; otherwise, false.
Removes the first occurrence of a specific object from the immutable dictionary.
true if item was successfully removed; otherwise false.
The item to remove from the dictionary.
The dictionary is read-only.
Adds an element with the provided key and value to the immutable dictionary.
The object to use as the key of the element to add.
The object to use as the value of the element to add.
is null.
An element with the same key already exists in the dictionary.
The dictionary is read-only.
Gets or sets the element with the specified key.
The element with the specified key. If no element is returned, throws a .
The key of the element to get or set.
Gets a collection containing the keys of the immutable dictionary.
A collection of keys of the object that implements the immutable dictionary.
Removes the element with the specified key from the immutable dictionary.
true if the element is successfully removed; otherwise, false. This method also returns false if was not found in the original dictionary.
The key of the element to remove.
is null.
The dictionary is read-only.
Gets a collection containing the values of the immutable dictionary.
A collection of values of the object that implements the immutable dictionary.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Copies the elements of the dictionary to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the immutable dictionary is synchronized (thread safe).
true if access to the dictionary is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the immutable dictionary.
An object that can be used to synchronize access to the immutable dictionary.
Adds an element with the provided key and value to the immutable dictionary object.
The object to use as the key of the element to add.
The object to use as the value of the element to add.
Clears this instance.
The dictionary object is read-only.
Determines whether the immutable dictionary object contains an element with the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate in the dictionary object.
Returns an object for the immutable dictionary object.
An enumerator object for the dictionary object.
Gets a value indicating whether the immutable dictionary object has a fixed size.
true if the dictionary object has a fixed size; otherwise, false.
Gets a value indicating whether the immutable dictionary is read-only.
true if the immutable dictionary is read-only; otherwise, false.
Gets or sets the element with the specified key.
The element with the specified key, or null if the key does not exist.
The key of the element to get or set.
Gets an object containing the keys of the immutable dictionary.
An containing the keys of the immutable dictionary.
Removes the element with the specified key from the immutable dictionary object.
The key of the element to remove.
Gets an object containing the values in the immutable dictionary.
An containing the values in the immutable dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Adds an element with the specified key and value to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pair.
The key of the element to add.
The value of the element to add.
Adds the specified key/value pairs to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pairs.
The key/value pairs to add.
Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
An empty dictionary with equivalent order and key/value comparison rules.
Removes the element with the specified key from the immutable dictionary.
A new immutable dictionary with the specified element removed; or this instance if the specified key cannot be found in the dictionary.
The key of the element to remove.
Removes the elements with the specified keys from the immutable dictionary.
A new immutable dictionary with the specified keys removed; or this instance if the specified keys cannot be found in the dictionary.
The keys of the elements to remove.
Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
A new immutable dictionary that contains the specified key/value pair.
The key of the entry to add.
The key value to set.
Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
A new immutable dictionary that contains the specified key/value pairs.
The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.
Creates an immutable dictionary with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.
A collection with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.
Determines whether this dictionary contains a specified key.
true if a match for is found; otherwise, false.
The key to search for.
The matching key located in the dictionary if found, or if no match is found.
Gets the value associated with the specified key.
true if the object that implements the dictionary contains an element with the specified key; otherwise, false.
The key whose value will be retrieved.
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, contains the default value for the type of the parameter. This parameter is passed uninitialized.
is null.
Gets the value comparer used to determine whether values are equal.
The value comparer used to determine whether values are equal.
Gets the values in the immutable dictionary.
The values in the immutable dictionary.
Gets an instance of the immutable dictionary that uses the specified key comparer.
An instance of the immutable dictionary that uses the given comparer.
The key comparer to use.
Gets an instance of the immutable dictionary that uses the specified key and value comparers.
An instance of the immutable dictionary that uses the given comparers.
The key comparer to use.
The value comparer to use.
Represents a hash map that mutates with little or no memory allocations and that can produce or build on immutable hash map instances very efficiently.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds the specified item to the immutable dictionary.
The object to add to the dictionary.
The dictionary is read-only.
Adds an element that has the specified key and value to the immutable dictionary.
The key of the element to add.
The value of the element to add.
is null.
An element with the same key already exists in the dictionary.
The dictionary is read-only.
Adds a sequence of values to this collection.
The items to add to this collection.
Removes all items from the immutable dictionary.
The dictionary is read-only.
Determines whether the immutable dictionary contains a specific value.
true if is found in the dictionary; otherwise, false.
The object to locate in the dictionary.
Determines whether the immutable dictionary contains an element that has the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate in the dictionary.
is null.
Determines whether the immutable dictionary contains an element that has the specified value.
true if the dictionary contains an element with the specified value; otherwise, false.
The value to locate in the immutable dictionary. The value can be null for reference types.
Gets the number of elements contained in the immutable dictionary.
The number of elements contained in the immutable dictionary.
Returns an enumerator that iterates through the immutable dictionary.
An enumerator that can be used to iterate through the collection.
Gets the value for a given key if a matching key exists in the dictionary.
The value for the key, or default(TValue) if no matching key was found.
The key to search for.
Gets the value for a given key if a matching key exists in the dictionary.
The value for the key, or if no matching key was found.
The key to search for.
The default value to return if no matching key is found in the dictionary.
Gets or sets the element with the specified key.
The element that has the specified key.
The element to get or set.
Gets or sets the key comparer.
The key comparer.
Gets a collection that contains the keys of the immutable dictionary.
A collection that contains the keys of the object that implements the immutable dictionary.
Removes the first occurrence of a specific object from the immutable dictionary.
true if was successfully removed from the dictionary; otherwise, false. This method also returns false if is not found in the dictionary.
The object to remove from the dictionary.
The dictionary is read-only.
Removes the element with the specified key from the immutable dictionary.
true if the element is successfully removed; otherwise, false. This method also returns false if was not found in the dictionary.
The key of the element to remove.
is null.
The dictionary is read-only.
Removes any entries with keys that match those found in the specified sequence from the immutable dictionary.
The keys for entries to remove from the dictionary.
Copies the elements of the dictionary to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the dictionary is read-only.
true if the dictionary is read-only; otherwise, false.
Gets an containing the keys of the dictionary.
An containing the keys of the object that implements the dictionary.
Gets an containing the values in the dictionary.
An containing the values in the object that implements the dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Copies the elements of the dictionary to an array of type , starting at the specified array index.
The one-dimensional array of type that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
true if access to the dictionary is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the dictionary.
An object that can be used to synchronize access to the dictionary.
Adds an element with the provided key and value to the dictionary object.
The key of the element to add.
The value of the element to add.
Determines whether the dictionary object contains an element with the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate.
Returns an object for the dictionary.
An object for the dictionary.
Gets a value indicating whether the dictionary object has a fixed size.
true if the dictionary object has a fixed size; otherwise, false.
Gets a value indicating whether the dictionary is read-only.
true if the dictionary is read-only; otherwise, false.
Gets or sets the element with the specified key.
The element that has the specified .
The element to get or set.
Gets an containing the keys of the dictionary.
An containing the keys of the object that implements dictionary.
Removes the element with the specified key from the dictionary.
The key of the element to remove.
Gets an containing the values in the dictionary.
An containing the values in the object that implements dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Creates an immutable dictionary based on the contents of this instance.
An immutable dictionary.
Determines whether this dictionary contains a specified key.
true if a match for is found; otherwise, false.
The key to search for.
The matching key located in the dictionary if found, or if no match is found.
Returns the value associated with the specified key.
true if the object that implements the immutable dictionary contains an element with the specified key; otherwise, false.
The key whose value will be retrieved.
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, returns the default value for the type of the parameter. This parameter is passed uninitialized.
is null.
Gets or sets the value comparer.
The value comparer.
Gets a collection that contains the values of the immutable dictionary.
A collection that contains the values of the object that implements the dictionary.
Enumerates the contents of the immutable dictionary without allocating any memory.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element in the dictionary at the current position of the enumerator.
Releases the resources used by the current instance of the class.
Advances the enumerator to the next element of the immutable dictionary.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the dictionary.
The dictionary was modified after the enumerator was created.
Sets the enumerator to its initial position, which is before the first element in the dictionary.
The dictionary was modified after the enumerator was created.
Gets the current element in the dictionary.
The current element in the dictionary.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable hash set.
An empty immutable hash set.
The type of items to be stored in the immutable hash set.
Creates an empty immutable hash set that uses the specified equality comparer.
An empty immutable hash set.
The object to use for comparing objects in the set for equality.
The type of items in the immutable hash set.
Creates a new immutable hash set that contains the specified item and uses the specified equality comparer for the set type.
A new immutable hash set that contains the specified item.
The object to use for comparing objects in the set for equality.
The item to prepopulate the hash set with.
The type of items in the immutable hash set.
Creates a new immutable hash set that contains the items in the specified collection and uses the specified equality comparer for the set type.
A new immutable hash set that contains the specified items.
The object to use for comparing objects in the set for equality.
An array that contains the items to prepopulate the hash set with.
The type of items stored in the immutable hash set.
Creates a new immutable hash set that contains the specified item.
A new immutable hash set that contains the specified item.
The item to prepopulate the hash set with.
The type of items in the immutable hash set.
Creates a new immutable hash set that contains the specified array of items.
A new immutable hash set that contains the specified items.
An array that contains the items to prepopulate the hash set with.
The type of items in the immutable hash set.
Creates a new immutable hash set builder.
The immutable hash set builder.
The type of items stored by the collection.
Creates a new immutable hash set builder.
The new immutable hash set builder.
The object to use for comparing objects in the set for equality.
The type of items stored by the collection.
Creates a new immutable hash set prefilled with the specified items.
The new immutable hash set that contains the specified items.
The items to add to the hash set.
The type of items stored by the collection.
Creates a new immutable hash set that contains the specified items and uses the specified equality comparer for the set type.
The new immutable hash set.
The object to use for comparing objects in the set for equality.
The items add to the collection before immutability is applied.
The type of items stored in the collection.
Enumerates a sequence and produces an immutable hash set of its contents.
An immutable hash set that contains the items in the specified sequence.
The sequence to enumerate.
The type of the elements in the sequence.
Enumerates a sequence, produces an immutable hash set of its contents, and uses the specified equality comparer for the set type.
An immutable hash set that contains the items in the specified sequence and uses the specified equality comparer.
The sequence to enumerate.
The object to use for comparing objects in the set for equality.
The type of the elements in the sequence.
Represents an immutable, unordered hash set.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the hash set.
Adds the specified element to the hash set.
true if the element is added to the hash set; false if the element already existed in the hash set.
The element to add to the set.
Retrieves an empty immutable hash set that has the same sorting and ordering semantics as this instance.
An empty hash set that has the same sorting and ordering semantics as this instance.
Determines whether this immutable hash set contains the specified element.
true if is found in the ; otherwise, false.
The object to locate in the immutable hash set.
Gets the number of elements in the immutable hash set.
The number of elements in the hash set.
Gets an immutable hash set for this type that uses the default .
An empty immutable hash set.
Removes the elements in the specified collection from the current immutable hash set.
A new set with the items removed; or the original set if none of the items were in the set.
The collection of items to remove from this set.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Creates an immutable hash set that contains elements that exist in both this set and the specified set.
A new immutable set that contains any elements that exist in both sets.
The collection to compare to the current set.
Gets a value that indicates whether the current immutable hash set is empty.
true if this instance is empty; otherwise, false.
Determines whether the current immutable hash set is a proper (strict) subset of a specified collection.
true if the current set is a proper subset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable hash set is a proper (strict) superset of a specified collection.
true if the current set is a proper superset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable hash set is a subset of a specified collection.
true if the current set is a subset of the specified collection; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable hash set is a superset of a specified collection.
true if the current set is a superset of the specified collection; otherwise, false.
The collection to compare to the current set.
Gets the object that is used to obtain hash codes for the keys and to check the equality of values in the immutable hash set.
The comparer used to obtain hash codes for the keys and check equality.
Determines whether the current immutable hash set overlaps with the specified collection.
true if the current set and the specified collection share at least one common element; otherwise, false.
The collection to compare to the current set.
Removes the specified element from this immutable hash set.
A new set with the specified element removed, or the current set if the element cannot be found in the set.
The element to remove.
Determines whether the current immutable hash set and the specified collection contain the same elements.
true if the sets are equal; otherwise, false.
The collection to compare to the current set.
Creates an immutable hash set that contains only elements that are present either in the current set or in the specified collection, but not both.
A new set that contains the elements that are present only in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Adds an item to the set.
The object to add to the set.
The set is read-only.
Removes all items from this set.
The set is read-only.
Copies the elements of the set to an array, starting at a particular index.
The one-dimensional array that is the destination of the elements copied from the set. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value that indicates whether the set is read-only.
true if the set is read-only; otherwise, false.
Removes the first occurrence of a specific object from the set.
true if the element is successfully removed; otherwise, false.
The object to remove from the set.
Returns an enumerator that iterates through the collection.
An enumerator that iterates through the collection.
Adds an element to the current set and returns a value that indicates whether the element was successfully added.
true if the element is added to the set; false if the element is already in the set.
The element to add to the collection.
Removes all elements in the specified collection from the current set.
The collection of items to remove.
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current collection.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Modifies the current set so that it contains all elements that are present in either the current set or in the specified collection.
The collection to compare to the current set.
Copies the elements of the set to an array, starting at a particular index.
The one-dimensional array that is the destination of the elements copied from the set. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value that indicates whether access to the set is synchronized (thread safe).
true if access to the set is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the set.
An object that can be used to synchronize access to the set.
Returns an enumerator that iterates through a set.
An enumerator that can be used to iterate through the set.
Adds the specified element to this immutable set.
A new set with the element added, or this set if the element is already in the set.
The element to add.
Retrieves an empty set that has the same sorting and ordering semantics as this instance.
An empty set that has the same sorting or ordering semantics as this instance.
Removes the elements in the specified collection from the current set.
A new set with the items removed; or the original set if none of the items were in the set.
The collection of items to remove from this set.
Creates an immutable set that contains elements that exist in both this set and the specified set.
A new immutable set that contains any elements that exist in both sets.
The collection to compare to the current set.
Removes the specified element from this immutable set.
A new set with the specified element removed, or the current set if the element cannot be found in the set.
The element to remove.
Creates an immutable set that contains only elements that are present either in the current set or in the specified collection, but not both.
A new set that contains the elements that are present only in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Creates a new immutable set that contains all elements that are present in either the current set or in the specified collection.
A new immutable set with the items added; or the original set if all the items were already in the set.
The collection to add elements from.
Creates an immutable hash set that has the same contents as this set and can be efficiently mutated across multiple operations by using standard mutable interfaces.
A set with the same contents as this set that can be efficiently mutated across multiple operations by using standard mutable interfaces.
Searches the set for a given value and returns the equal value it finds, if any.
A value indicating whether the search was successful.
The value to search for.
The value from the set that the search found, or the original value if the search yielded no match.
Creates a new immutable hash set that contains all elements that are present in either the current set or in the specified collection.
A new immutable hash set with the items added; or the original set if all the items were already in the set.
The collection to add elements from.
Gets an instance of the immutable hash set that uses the specified equality comparer for its search methods.
An instance of this immutable hash set that uses the given comparer.
The equality comparer to use.
Represents a hash set that mutates with little or no memory allocations and that can produce or build on immutable hash set instances very efficiently.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds the specified item to the immutable hash set.
true if the item did not already belong to the collection; otherwise, false.
The item to add.
Removes all items from the immutable hash set.
The hash set is read-only.
Determines whether the immutable hash set contains a specific value.
true if is found in the hash set ; otherwise, false.
The object to locate in the hash set.
Gets the number of elements contained in the immutable hash set.
The number of elements contained in the immutable hash set.
Removes all elements in the specified collection from the current hash set.
The collection of items to remove from the set.
Returns an enumerator that iterates through the immutable hash set.
An enumerator that can be used to iterate through the set.
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set.
Determines whether the current set is a proper (strict) subset of a specified collection.
true if the current set is a proper subset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current set is a proper (strict) superset of a specified collection.
true if the current set is a proper superset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set.
Gets or sets the key comparer.
The key comparer.
Determines whether the current set overlaps with the specified collection.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set.
Removes the first occurrence of a specific object from the immutable hash set.
true if was successfully removed from the set ; otherwise, false. This method also returns false if is not found in the original set.
The object to remove from the set.
The set is read-only.
Determines whether the current set and the specified collection contain the same elements.
true if the current set is equal to ; otherwise, false.
The collection to compare to the current set.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Adds an item to the hash set.
The object to add to the set.
The set is read-only.
Copies the elements of the hash set to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the hash set. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the hash set is read-only.
true if the set is read-only; otherwise, false.
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 enumerator that can be used to iterate through the collection.
Creates an immutable hash set based on the contents of this instance.
An immutable set.
Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection.
The collection to compare to the current set.
Enumerates the contents of the immutable hash set without allocating any memory.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element at the current position of the enumerator.
Releases the resources used by the current instance of the class.
Advances the enumerator to the next element of the immutable hash set.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the hash set.
The hash set was modified after the enumerator was created.
Sets the enumerator to its initial position, which is before the first element in the hash set.
The hash set was modified after the enumerator was created.
Gets the current element in the hash set.
The current element in the hash set.
Contains interlocked exchange mechanisms for immutable collections.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Obtains the value from a dictionary after having added it or updated an existing entry.
The added or updated value.
The variable or field to atomically update if the specified is not in the dictionary.
The key for the value to add or update.
The function that receives the key and returns a new value to add to the dictionary when no value previously exists.
The function that receives the key and prior value and returns the new value with which to update the dictionary.
Obtains the value from a dictionary after having added it or updated an existing entry.
The added or updated value.
The variable or field to atomically update if the specified is not in the dictionary.
The key for the value to add or update.
The value to use if no previous value exists.
The function that receives the key and prior value and returns the new value with which to update the dictionary.
Atomically enqueues an element to the end of a queue.
The variable or field to atomically update.
The value to enqueue.
The type of items contained in the collection
Gets the value for the specified key from the dictionary, or if the key was not found, adds a new value to the dictionary.
The value at the specified key or if the key was not present.
The variable or field to atomically update if the specified is not in the dictionary.
The key for the value to retrieve or add.
The function to execute to obtain the value to insert into the dictionary if the key is not found. This delegate will not be invoked more than once.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Gets the value for the specified key from the dictionary, or if the key was not found, adds a new value to the dictionary.
The value at the specified key or if the key was not present.
The variable or field to update if the specified is not in the dictionary.
The key for the value to retrieve or add.
The function to execute to obtain the value to insert into the dictionary if the key is not found.
The argument to pass to the value factory.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Gets the value for the specified key from the dictionary, or if the key was not found, adds a new value to the dictionary.
The value at the specified key or if the key was not present.
The variable or field to atomically update if the specified key is not in the dictionary.
The key for the value to get or add.
The value to add to the dictionary the key is not found.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Compares two immutable arrays for equality and, if they are equal, replaces one of the arrays.
The original value in .
The destination, whose value is compared with and possibly replaced.
The value that replaces the destination value if the comparison results in equality.
The value that is compared to the value at .
The type of element stored by the array.
Sets an array to the specified array and returns a reference to the original array, as an atomic operation.
The original value of .
The array to set to the specified value.
The value to which the parameter is set.
The type of element stored by the array.
Sets an array to the specified array if the array has not been initialized.
true if the array was assigned the specified value; otherwise, false.
The array to set to the specified value.
The value to which the parameter is set, if it’s not initialized.
The type of element stored by the array.
Pushes a new element onto the stack.
The stack to update.
The value to push on the stack.
The type of items in the stack.
Adds the specified key and value to the dictionary if the key is not in the dictionary.
true if the key is not in the dictionary; otherwise, false.
The dictionary to update with the specified key and value.
The key to add, if is not already defined in the dictionary.
The value to add.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Atomically removes and returns the specified element at the head of the queue, if the queue is not empty.
true if the queue is not empty and the head element is removed; otherwise, false.
The variable or field to atomically update.
Set to the value from the head of the queue, if the queue not empty.
The type of items in the queue.
Removes an element from the top of the stack, if there is an element to remove.
true if an element is removed from the stack; otherwise, false.
The stack to update.
Receives the value removed from the stack, if the stack is not empty.
The type of items in the stack.
Removes the element with the specified key, if the key exists.
true if the key was found and removed; otherwise, false.
The dictionary to update.
The key to remove.
Receives the value of the removed item, if the dictionary is not empty.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Sets the specified key to the specified value if the specified key already is set to a specific value.
true if and are present in the dictionary and comparison was updated to ; otherwise, false.
The dictionary to update.
The key to update.
The new value to set.
The current value for in order for the update to succeed.
The type of the keys contained in the collection.
The type of the values contained in the collection.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable list.
An empty .
The type of items to be stored in the .
Creates a new immutable list that contains the specified item.
A new that contains the specified item.
The item to prepopulate the list with.
The type of items in the .
Creates a new immutable list that contains the specified array of items.
A new immutable list that contains the specified items.
An array that contains the items to prepopulate the list with.
The type of items in the .
Creates a new immutable list builder.
The immutable collection builder.
The type of items stored by the collection.
Creates a new immutable list that contains the specified items.
Returns an immutable list that contains the specified items.
The items to add to the list.
The type of items in the .
Searches for the specified object and returns the zero-based index of the first occurrence within the list.
The zero-based index of the first occurrence of item within the range of elements in the list that extends from index to the last element, if found; otherwise, –1.
The list to search.
The object to locate in the list. The value can be null for reference types.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the first occurrence within the list.
The zero-based index of the first occurrence of item within the range of elements in the immutable list that extends from index to the last element, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The equality comparer to use in the search.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
The zero-based index of the first occurrence of item within the range of elements in the Immutable list that extends from index to the last element, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
The zero-based index of the first occurrence of item within the range of elements in the Immutable list that extends from index to the last element, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
The zero-based index of the last occurrence of item within the entire the Immutable list, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
The zero-based index of the last occurrence of item within the entire the Immutable list, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The equality comparer to use in the search.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
The zero-based index of the last occurrence of item within the range of elements in the Immutable list that extends from the first element to index, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The zero-based starting index of the backward search.
The type of items in the list.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
The zero-based index of the last occurrence of item within the range of elements in the Immutable list that extends from the first element to index, if found; otherwise, –1.
The list to search.
The object to locate in the Immutable list. The value can be null for reference types.
The zero-based starting index of the backward search.
The number of elements in the section to search.
The type of items in the list.
Removes the specified value from this list.
A new immutable list with the element removed, or this list if the element is not in this list.
The list to search.
The value to remove.
The type of items in the list.
Removes the specified values from this list.
A new immutable list with the elements removed.
The list to search.
The items to remove if matches are found in this list.
The type of items in the list.
Replaces the first equal element in the list with the specified element.
The new list -- even if the value being replaced is equal to the new value for that position.
The list to search.
The element to replace.
The element to replace the old element with.
The type of items in the list.
Thrown when the old value does not exist in the list.
Enumerates a sequence and produces an immutable list of its contents.
An immutable list that contains the items in the specified sequence.
The sequence to enumerate.
The type of the elements in the sequence.
Represents an immutable list, which is a strongly typed list of objects that can be accessed by index.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the list.
Adds the specified object to the end of the immutable list.
A new immutable list with the object added, or the current list if it already contains the specified object.
The object to add.
Adds the elements of the specified collection to the end of the immutable list.
A new immutable list with the elements added, or the current list if it already contains the specified elements.
The collection whose elements will be added to the end of the list.
Searches a range of elements in the sorted list for an element using the specified comparer and returns the zero-based index of the element.
The zero-based index of item in the sorted list, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of .
The zero-based starting index of the range to search.
The length of the range to search.
The object to locate. The value can be null for reference types.
The comparer implementation to use when comparing elements, or null to use the default comparer.
index is less than 0 or is less than 0.
index and do not denote a valid range in the list.
is null, and the default comparer cannot find an comparer implementation for type T.
Searches the entire sorted list for an element using the default comparer and returns the zero-based index of the element.
The zero-based index of item in the sorted List, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of .
The object to locate. The value can be null for reference types.
The default comparer cannot find a comparer implementation of the for type T.
Searches the entire sorted list for an element using the specified comparer and returns the zero-based index of the element.
The zero-based index of item in the sorted List, if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than item or, if there is no larger element, the bitwise complement of .
The object to locate. The value can be null for reference types.
The comparer implementation to use when comparing elements or null to use the default comparer.
comparer is null, and the default comparer cannot find an comparer implementation for type T.
Removes all elements from the immutable list.
An empty list that retains the same sort or unordered semantics that this instance has.
Determines whether this immutable list contains the specified value.
true if the list contains the specified value; otherwise, false.
The value to locate.
Converts the elements in the current immutable list to another type, and returns a list containing the converted elements.
A delegate that converts each element from one type to another type.
The type of the elements of the target array.
Copies a range of elements from the immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
The zero-based index in the source immutable list at which copying begins.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
The zero-based index in array at which copying begins.
The number of elements to copy.
Copies the entire immutable list to a compatible one-dimensional array, starting at the beginning of the target array.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
Copies the entire immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets the number of elements contained in the list.
The number of elements in the list.
Gets an empty set with the default sort comparer.
An empty immutable list that uses the default sort comparer.
Determines whether the immutable list contains elements that match the conditions defined by the specified predicate.
true if the immutable list contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.
The delegate that defines the conditions of the elements to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire immutable list.
The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type .
The delegate that defines the conditions of the element to search for.
Retrieves all the elements that match the conditions defined by the specified predicate.
An immutable list that contains all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty immutable list.
The delegate that defines the conditions of the elements to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, ?1.
The zero-based starting index of the search.
The number of elements in the section to search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, ?1.
The zero-based starting index of the search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire immutable list.
The zero-based index of the first occurrence of an element that matches the conditions defined by match, if found; otherwise, ?1.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire immutable list.
The last element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type .
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, ?1.
The zero-based starting index of the backward search.
The number of elements in the section to search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, ?1.
The zero-based starting index of the backward search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire immutable list.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, ?1.
The delegate that defines the conditions of the element to search for.
Performs the specified action on each element of the immutable list.
The delegate to perform on each element of the immutable list.
Returns an enumerator that iterates through the immutable list.
An enumerator that can be used to iterate through the immutable list.
Creates a shallow copy of a range of elements in the source immutable list.
A shallow copy of a range of elements in the source immutable list.
The zero-based index at which the range starts.
The number of elements in the range.
Searches for the specified object and returns the zero-based index of the first occurrence within the entire immutable list.
The zero-based index of the first occurrence of within the entire immutable list, if found; otherwise, ?1.
The object to locate in the immutable list. The value can be for reference types.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the list that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of item within the range of elements in the list that starts at index and contains count number of elements, if found; otherwise, –1.
The object to locate in the list The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.
The equality comparer to use in the search.
Inserts the specified object into the immutable list at the specified index.
The new immutable list after the object is inserted.
The zero-based index at which to insert the object.
The object to insert.
Inserts the elements of a collection into the immutable list at the specified index.
The new immutable list after the elements are inserted.
The zero-based index at which to insert the elements.
The collection whose elements should be inserted.
Gets a value that indicates whether this list is empty.
true if the list is empty; otherwise, false.
Gets the element at the specified index of the list.
The element at the specified index.
The index of the element to retrieve.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the list that contains the specified number of elements and ends at the specified index.
The zero-based index of the last occurrence of item within the range of elements in the list that contains count number of elements and ends at index, if found; otherwise, –1.
The object to locate in the list. The value can be null for reference types.
The zero-based starting index of the backward search.
The number of elements in the section to search.
The equality comparer to use in the search.
Removes the first occurrence of the specified object from this immutable list.
A new list with the object removed, or this list if the specified object is not in this list.
The object to remove.
Removes the first occurrence of the object that matches the specified value from this immutable list.
A new list with the object removed, or this list if the specified object is not in this list.
The value of the element to remove from the list.
The equality comparer to use in the search.
Removes all the elements that match the conditions defined by the specified predicate.
The new list with the elements removed.
The delegate that defines the conditions of the elements to remove.
Removes the element at the specified index.
A new list with the element removed.
The zero-based index of the element to remove.
Removes a range of elements from this immutable list.
A new list with the elements removed.
The collection whose elements should be removed if matches are found in this list.
Removes the specified values from this list.
A new list with the elements removed.
The items to remove if matches are found in this list.
The equality comparer to use in the search.
Removes a range of elements, starting from the specified index and containing the specified number of elements, from this immutable list.
A new list with the elements removed.
The starting index to begin removal.
The number of elements to remove.
Replaces the specified element in the immutable list with a new element.
The new list with the replaced element, even if it is equal to the old element.
The element to replace.
The element to replace with.
does not exist in the immutable list.
Replaces the specified element in the immutable list with a new element.
A new list with the object replaced, or this list if the specified object is not in this list.
The element to replace in the list.
The element to replace with.
The comparer to use to check for equality.
Reverses the order of the elements in the entire immutable list.
The reversed list.
Reverses the order of the elements in the specified range of the immutable list.
The reversed list.
The zero-based starting index of the range to reverse.
The number of elements in the range to reverse.
Replaces an element at a given position in the immutable list with the specified element.
The new list with the replaced element, even if it is equal to the old element at that position.
The position in the list of the element to replace.
The element to replace the old element with.
Sorts the elements in the entire immutable list using the default comparer.
The sorted list.
Sorts the elements in the entire immutable list using the specified comparer.
The sorted list.
The implementation to use when comparing elements, or null to use the default comparer ().
Sorts the elements in the entire immutable list using the specified comparer.
The sorted list.
The delegate to use when comparing elements.
Sorts a range of elements in the immutable list using the specified comparer.
The sorted list.
The zero-based starting index of the range to sort.
The length of the range to sort.
The implementation to use when comparing elements, or null to use the default comparer ().
Adds the specified item to the immutable list.
The item to add.
Removes all items from the immutable list.
Gets a value that indicates whether the list is read-only.
true if the list is read-only; otherwise, false.
Removes the first occurrence of a specific object from the immutable list.
true if was successfully removed from the list; otherwise, false. This method also returns false if is not found in the original list.
The object to remove.
Returns an enumerator that iterates through the immutable list.
An enumerator that can be used to iterate through the list.
Inserts an object in the immutable list at the specified index.
The zero-based index at which should be inserted.
The object to insert.
Gets or sets the element at the specified index.
The element at the specified index. If no item was returned, the property throws a .
The index of the item to get or set.
Removes the value at the specified index.
The zero-based index of the item to remove.
Copies the entire immutable list to a compatible one-dimensional array, starting at the specified array index.
The one-dimensional array that is the destination of the elements copied from immutable list.
The zero-based index in at which copying begins.
Gets a value that indicates whether access to the list is synchronized.
true if the access to the list is synchronized; otherwise, false.
Gets an object that can be used to synchronize access to the .
An object that can be used to synchronize access to the list.
Returns an enumerator that iterates through the immutable list.
An enumerator that can be used to iterate through the list.
Adds an item to the immutable list.
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the list.
The object to add to the list.
Removes all items from the immutable list.
Determines whether the immutable list contains a specific value.
true if the object is found in the list; otherwise, false.
The object to locate in the list.
Determines the index of a specific item in the immutable list.
The index of if found in the list; otherwise, -1.
The object to locate in the list.
Inserts an item into the immutable list at the specified index.
The zero-based index at which should be inserted.
The object to insert into the list.
Gets a value that indicates whether the list has a fixed size.
true if the list has a fixed size; otherwise, false.
Gets a value that indicates whether the immutable list is read-only.
true if the list is read-only; otherwise, false.
Gets or sets the element at the specified index.
The element at the specified index.
The index of the item to get or set.
Removes the first occurrence of a specific object from the immutable list.
The object to remove from the list.
Removes the item at the specified index of the immutable list.
The zero-based index of the item to remove.
Adds the specified value to this immutable list.
A new list with the element added, or this list if the element is already in the list.
The value to add.
Adds the specified values to this immutable list.
A new list with the elements added, or this list if the elements are already in the list.
The values to add.
Retrieves an empty list that has the same sorting and ordering semantics as this instance.
An empty list that has the same sorting and ordering semantics as this instance.
Inserts the specified element at the specified index in the immutable list.
A new immutable list that includes the specified element.
The index at which to insert the value.
The element to insert.
Inserts the specified elements at the specified index in the immutable list.
A new immutable list that includes the specified elements.
The index at which to insert the elements.
The elements to insert.
Removes the element with the specified value from the list.
Returns a new with the specified element removed.
The value of the element to remove from the list.
The comparer to use to compare elements for equality.
Removes all the elements that match the conditions defined by the specified predicate.
A new immutable list with the elements removed.
The delegate that defines the conditions of the elements to remove.
Removes the element at the specified index of the immutable list.
A new list with the element removed.
The index of the element to remove.
Removes a range of elements from this immutable list that match the items specified.
An immutable list with the items removed.
The range of items to remove from the list, if found.
The equality comparer to use to compare elements.
or is null.
Removes the specified number of elements at the specified location from this list.
A new list with the elements removed.
The starting index of the range of elements to remove.
The number of elements to remove.
Replaces an element in the list with the specified element.
The new list.
The element to replace.
The element to replace the old element with.
The equality comparer to use in the search.
Thrown when the old value does not exist in the list.
Replaces an element in the list at a given position with the specified element.
The new list.
The position in the list of the element to replace.
The element to replace the old element with.
Creates a list that has the same contents as this list and can be efficiently mutated across multiple operations using standard mutable interfaces.
The created list with the same contents as this list.
Determines whether every element in the immutable list matches the conditions defined by the specified predicate.
true if every element in the immutable list matches the conditions defined by the specified predicate; otherwise, false. If the list has no elements, the return value is true.
The delegate that defines the conditions to check against the elements.
Represents a list that mutates with little or no memory allocations and that can produce or build on immutable list instances very efficiently.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds an item to the immutable list.
The item to add to the list.
Adds a series of elements to the end of this list.
The elements to add to the end of the list.
Searches the specified range of the for an element using the specified comparer and returns the zero-based index of the element.
The zero-based index of item in the , if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than .
The zero-based starting index of the range to search.
The length of the range to search.
The object to locate. This value can be null for reference types.
The implementation to use when comparing elements, or null for the default comparer.
Searches the entire for an element using the default comparer and returns the zero-based index of the element.
The zero-based index of item in the , if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than .
The object to locate. The value can be null for reference types.
Searches the entire for an element using the specified comparer and returns the zero-based index of the element.
The zero-based index of item in the , if item is found; otherwise, a negative number that is the bitwise complement of the index of the next element that is larger than .
The object to locate. This value can be null for reference types.
The implementation to use when comparing elements, or null for the default comparer.
Removes all items from the immutable list.
Determines whether the immutable list contains a specific value.
true if item is found in the list; otherwise, false.
The object to locate in the list.
Creates a new immutable list from the list represented by this builder by using the converter function.
A new immutable list from the list represented by this builder.
The converter function.
The type of the output of the delegate converter function.
Copies the entire immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
The zero-based index in the source immutable list at which copying begins.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
The zero-based index in at which copying begins.
The number of elements to copy.
Copies the entire immutable list to a compatible one-dimensional array, starting at the beginning of the target array.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
Copies the entire immutable list to a compatible one-dimensional array, starting at the specified index of the target array.
The one-dimensional array that is the destination of the elements copied from the immutable list. The array must have zero-based indexing.
The zero-based index in array at which copying begins.
Gets the number of elements in this immutable list.
The number of elements in this list.
Determines whether the immutable list contains elements that match the conditions defined by the specified predicate.
true if the immutable list contains one or more elements that match the conditions defined by the specified predicate; otherwise, false.
The delegate that defines the conditions of the elements to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the first occurrence within the entire immutable list.
The first element that matches the conditions defined by the specified predicate, if found; otherwise, the default value for type .
The delegate that defines the conditions of the element to search for.
Retrieves all the elements that match the conditions defined by the specified predicate.
An immutable list containing all the elements that match the conditions defined by the specified predicate, if found; otherwise, an empty immutable list.
The delegate that defines the conditions of the elements to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The zero-based starting index of the search.
The number of elements in the section to search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
The zero-based index of the first occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The zero-based starting index of the search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the first occurrence within the entire immutable list.
The zero-based index of the first occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the last occurrence within the entire immutable list.
The last element that matches the conditions defined by the specified predicate, found; otherwise, the default value for type .
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The zero-based starting index of the backward search.
The number of elements in the section to search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The zero-based starting index of the backward search.
The delegate that defines the conditions of the element to search for.
Searches for an element that matches the conditions defined by the specified predicate, and returns the zero-based index of the last occurrence within the entire immutable list.
The zero-based index of the last occurrence of an element that matches the conditions defined by , if found; otherwise, –1.
The delegate that defines the conditions of the element to search for.
Performs the specified action on each element of the list.
The delegate to perform on each element of the list.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the list.
Creates a shallow copy of a range of elements in the source immutable list.
A shallow copy of a range of elements in the source immutable list.
The zero-based index at which the range starts.
The number of elements in the range.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list.
The zero-based index of the first occurrence of within the range of elements in the immutable list, if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that extends from the specified index to the last element.
The zero-based index of the first occurrence of item within the range of elements in the immutable list that extends from to the last element, if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the immutable list that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of item within the range of elements in the immutable list that starts at and contains number of elements, if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements in the section to search.
Searches for the specified object and returns the zero-based index of the first occurrence within the range of elements in the that starts at the specified index and contains the specified number of elements.
The zero-based index of the first occurrence of item within the range of elements in the immutable list that starts at and contains number of elements, if found; otherwise, –1
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements to search.
The value comparer to use for comparing elements for equality.
Inserts an item to the immutable list at the specified index.
The zero-based index at which should be inserted.
The object to insert into the immutable list.
Inserts the elements of a collection into the immutable list at the specified index.
The zero-based index at which the new elements should be inserted.
The collection whose elements should be inserted into the immutable list. The collection itself cannot be null, but it can contain elements that are null, if type is a reference type.
Gets or sets the value for a given index in the list.
The value at the specified index.
The index of the item to get or set.
Searches for the specified object and returns the zero-based index of the last occurrence within the entire immutable list.
The zero-based index of the last occurrence of within the entire immutable list, if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that extends from the first element to the specified index.
The zero-based index of the last occurrence of within the range of elements in the immutable list that extends from the first element to , if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the backward search.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
The zero-based index of the last occurrence of within the range of elements in the immutable list that contains number of elements and ends at , if found; otherwise, –1.
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the backward search.
The number of elements in the section to search.
Searches for the specified object and returns the zero-based index of the last occurrence within the range of elements in the immutable list that contains the specified number of elements and ends at the specified index.
The zero-based index of the first occurrence of item within the range of elements in the immutable list that starts at and contains number of elements, if found; otherwise, –1
The object to locate in the immutable list. The value can be null for reference types.
The zero-based starting index of the search. 0 (zero) is valid in an empty list.
The number of elements to search.
The value comparer to use for comparing elements for equality.
Removes the first occurrence of a specific object from the immutable list.
true if item was successfully removed from the list; otherwise, false. This method also returns false if item is not found in the list.
The object to remove from the list.
Removes all the elements that match the conditions defined by the specified predicate.
The number of elements removed from the immutable list.
The delegate that defines the conditions of the elements to remove.
Removes the item at the specified index of the immutable list.
The zero-based index of the item to remove from the list.
Reverses the order of the elements in the entire immutable list.
Reverses the order of the elements in the specified range of the immutable list.
The zero-based starting index of the range to reverse.
The number of elements in the range to reverse.
Sorts the elements in the entire immutable list by using the default comparer.
Sorts the elements in the entire immutable list by using the specified comparer.
The implementation to use when comparing elements, or null to use the default comparer ().
Sorts the elements in the entire immutable list by using the specified comparison object.
The object to use when comparing elements.
Sorts the elements in a range of elements in the immutable list by using the specified comparer.
The zero-based starting index of the range to sort.
The length of the range to sort.
The implementation to use when comparing elements, or null to use the default comparer ().
Gets a value indicating whether this instance is read-only.
true if the list is read-only; otherwise, false.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Copies the elements of the list to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the list. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the list is synchronized (thread safe).
true if access to the list is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the list.
An object that can be used to synchronize access to the list.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Adds an item to the list.
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.
The object to add to the list.
Removes all items from the list.
Determines whether the list contains a specific value.
true if the is found in the list; otherwise, false.
The object to locate in the list.
Determines the index of a specific item in the list.
The index of if found in the list; otherwise, -1.
The object to locate in the list.
Inserts an item to the list at the specified index.
The zero-based index at which should be inserted.
The object to insert into the list.
Gets a value indicating whether the list has a fixed size.
true if the list has a fixed size; otherwise, false.
Gets a value indicating whether the list is read-only.
Always false.
Gets or sets the at the specified index.
The object at the specified index.
The index of the item to get or set.
Removes the first occurrence of a specific object from the list.
The object to remove from the list.
Creates an immutable list based on the contents of this instance.
An immutable list.
Determines whether every element in the immutable list matches the conditions defined by the specified predicate.
true if every element in the immutable list matches the conditions defined by the specified predicate; otherwise, false. If the list has no elements, the return value is true.
The delegate that defines the conditions to check against the elements.
Enumerates the contents of a binary tree.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element at the current position of the enumerator.
Releases the resources used by the current instance of the class.
Advances enumeration to the next element of the immutable list.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the list.
Sets the enumerator to its initial position, which is before the first element in the immutable list.
Gets the current element in the immutable list.
The current element in the immutable list.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable queue.
An empty immutable queue.
The type of items to be stored in the immutable queue.
Creates a new immutable queue that contains the specified item.
A new immutable queue that contains the specified item.
The item to prepopulate the queue with.
The type of items in the immutable queue.
Creates a new immutable queue that contains the specified array of items.
A new immutable queue that contains the specified items.
An array that contains the items to prepopulate the queue with.
The type of items in the immutable queue.
Creates a new immutable queue that contains the specified items.
An immutable queue that contains the specified items.
The items to add to the queue before immutability is applied.
The type of elements in the queue.
Removes the item at the beginning of the immutable queue, and returns the new queue.
The new queue with the item removed.
The queue to remove the item from.
When this method returns, contains the item from the beginning of the queue.
The type of elements in the immutable queue.
Represents an immutable queue.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the queue.
Removes all objects from the immutable queue.
The empty immutable queue.
Removes the element at the beginning of the immutable queue, and returns the new queue.
The new immutable queue; never null.
Removes the item at the beginning of the immutable queue, and returns the new queue.
The new immutable queue with the beginning element removed.
When this method returns, contains the element from the beginning of the queue.
Gets an empty immutable queue.
An empty immutable queue.
Adds an element to the end of the immutable queue, and returns the new queue.
The new immutable queue.
The element to add.
Returns an enumerator that iterates through the immutable queue.
An enumerator that can be used to iterate through the queue.
Gets a value that indicates whether this immutable queue is empty.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
true if this queue is empty; otherwise, false.
Returns the element at the beginning of the immutable queue without removing it.
The element at the beginning of the queue.
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.
Removes all elements from the immutable queue.
The empty immutable queue.
Removes the element at the beginning of the immutable queue, and returns the new queue.
The new immutable queue; never null.
Adds an element to the end of the immutable queue, and returns the new queue.
The new immutable queue.
The element to add.
Enumerates the contents of an immutable queue without allocating any memory.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element at the current position of the enumerator.
Advances the enumerator to the next element of the immutable queue.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the queue.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable sorted dictionary.
An empty immutable sorted dictionary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates an empty immutable sorted dictionary that uses the specified key comparer.
An empty immutable sorted dictionary.
The implementation to use to determine the equality of keys in the dictionary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates an empty immutable sorted dictionary that uses the specified key and value comparers.
An empty immutable sorted dictionary.
The implementation to use to determine the equality of keys in the dictionary.
The implementation to use to determine the equality of values in the dictonary.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable sorted dictionary builder.
The immutable collection builder.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable sorted dictionary builder.
The immutable collection builder.
The key comparer.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable sorted dictionary builder.
The immutable collection builder.
The key comparer.
The value comparer.
The type of keys stored by the dictionary.
The type of values stored by the dictionary.
Creates a new immutable sorted dictionary from the specified range of items with the specified key comparer.
The new immutable sorted dictionary that contains the specified items and uses the specified key comparer.
The comparer implementation to use to evaluate keys for equality and sorting.
The items to add to the sorted dictionary.
The type of keys stored in the dictionary.
The type of values stored in the dictionary.
Creates a new immutable sorted dictionary from the specified range of items with the specified key and value comparers.
An immutable sorted dictionary that contains the specified items and uses the specified comparers.
The comparer implementation to use to compare keys for equality and sorting.
The comparer implementation to use to compare values for equality and sorting.
The items to add to the sorted dictionary before it’s immutable.
The type of keys stored in the dictionary.
The type of values stored in the dictionary.
Creates an immutable sorted dictionary that contains the specified items and uses the default comparer.
An immutable sorted dictionary that contains the specified items.
The items to add to the sorted dictionary before it’s immutable.
The type of keys stored in the dictionary.
The type of values stored in the dictionary.
Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents.
An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Enumerates a sequence of key/value pairs and produces an immutable dictionary of its contents by using the specified key comparer.
An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The key comparer to use when building the immutable dictionary.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Enumerates a sequence of key/value pairs and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.
An immutable sorted dictionary that contains the key/value pairs in the specified sequence.
The sequence of key/value pairs to enumerate.
The key comparer to use when building the immutable dictionary.
The value comparer to use for the immutable dictionary.
The type of the keys in the dictionary.
The type of the values in the dictionary.
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents.
An immutable sorted dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key comparer.
An immutable dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The key comparer to use for the dictionary.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Enumerates and transforms a sequence, and produces an immutable sorted dictionary of its contents by using the specified key and value comparers.
An immutable sorted dictionary that contains the items in the specified sequence.
The sequence to enumerate to generate the dictionary.
The function that will produce the key for the dictionary from each sequence element.
The function that will produce the value for the dictionary from each sequence element.
The key comparer to use for the dictionary.
The value comparer to use for the dictionary.
The type of the elements in the sequence.
The type of the keys in the resulting dictionary.
The type of the values in the resulting dictionary.
Represents an immutable sorted dictionary.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of the key contained in the dictionary.
The type of the value contained in the dictionary.
Adds an element with the specified key and value to the immutable sorted dictionary.
A new immutable sorted dictionary that contains the additional key/value pair.
The key of the entry to add.
The value of entry to add.
The given key already exists in the dictionary but has a different value.
Adds the specific key/value pairs to the immutable sorted dictionary.
A new immutable dictionary that contains the additional key/value pairs.
The key/value pairs to add.
One of the given keys already exists in the dictionary but has a different value.
Retrieves an empty immutable sorted dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
An empty dictionary with equivalent ordering and key/value comparison rules.
Determines whether this immutable sorted dictionary contains the specified key/value pair.
true if the specified key/value pair is found in the dictionary; otherwise, false.
The key/value pair to locate.
Determines whether this immutable sorted map contains the specified key.
true if the immutable dictionary contains the specified key; otherwise, false.
The key to locate.
Determines whether the immutable sorted dictionary contains an element with the specified value.
true if the dictionary contains an element with the specified value; otherwise, false.
The value to locate. The value can be null for reference types.
Gets the number of key/value pairs in the immutable sorted dictionary.
The number of key/value pairs in the dictionary.
Gets an empty immutable sorted dictionary.
An empty immutable sorted dictionary.
Returns an enumerator that iterates through the immutable sorted dictionary.
An enumerator that can be used to iterate through the dictionary.
Gets a value that indicates whether this instance of the immutable sorted dictionary is empty.
true if this instance is empty; otherwise, false.
Gets the associated with the specified key.
The value associated with the specified key. If no results are found, the operation throws an exception.
The key to retrieve the value for.
Gets the key comparer for the immutable sorted dictionary.
The key comparer for the dictionary.
Gets the keys in the immutable sorted dictionary.
The keys in the immutable dictionary.
Removes the element with the specified value from the immutable sorted dictionary.
A new immutable dictionary with the specified element removed; or this instance if the specified value cannot be found in the dictionary.
The value of the element to remove.
Removes the elements with the specified keys from the immutable sorted dictionary.
A new immutable dictionary with the specified keys removed; or this instance if the specified keys cannot be found in the dictionary.
The keys of the elements to remove.
Sets the specified key and value in the immutable sorted dictionary, possibly overwriting an existing value for the given key.
A new immutable sorted dictionary that contains the specified key/value pair.
The key of the entry to add.
The key value to set.
Sets the specified key/value pairs in the immutable sorted dictionary, possibly overwriting existing values for the keys.
An immutable dictionary that contains the specified key/value pairs.
The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.
Adds the specified item to the collection.
The item to add.
Removes all the items from the collection.
Copies the elements of the collection to an array, starting at the specified index.
The one-dimensional array that is the destination of the elements copied from the collection. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the immutable dictionary is read-only.
true if the immutable dictionary is read only; otherwise, false.
Removes the first occurrence of the specified object from the immutable dictionary.
true if the item was successfully removed; otherwise, false.
The item to remove from the dictionary.
Adds an element with the provided key and value to the immutable dictionary.
The object to use as the key of the element to add.
The object to use as the value of the element to add.
is null.
An element with the same key already exists in the dictionary.
The dictionary is read-only.
Gets or sets the element with the specified key.
The element with the specified key. If no element is returned, throws a .
The key of the element to get or set.
Gets a collection containing the keys of the immutable dictionary.
A collection of keys.
Removes the element with the specified key from the immutable dictionary.
true if the element is successfully removed; otherwise, false. This method also returns false if was not found in the original dictionary.
The key of the element to remove.
is null.
The dictionary is read-only.
Gets a collection containing the values of the immutable dictionary.
A collection of values of the object that implements the immutable dictionary.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Copies the elements of the dictionary to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the immutable dictionary is synchronized (thread safe).
true if access to the dictionary is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the immutable dictionary.
An object that can be used to synchronize access to the dictionary.
Adds an element with the provided key and value to the dictionary object.
The object to use as the key of the element to add.
The object to use as the value of the element to add.
Clears this instance.
The dictionary object is read-only.
Determines whether the immutable dictionary object contains an element with the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate in the dictionary object.
Returns an object for the immutable dictionary object.
An enumerator object for the dictionary object.
Gets a value indicating whether the immutable dictionary object has a fixed size.
true if the dictionary object has a fixed size; otherwise, false.
Gets a value indicating whether the immutable dictionary is read-only.
true if the dictionary is read-only; otherwise, false.
Gets or sets the element with the specified key.
The element with the specified key, or null if the key does not exist.
The key of the element to get or set.
Gets an object containing the keys of the immutable dictionary.
An object containing the keys of the immutable dictionary.
Removes the element with the specified key from the immutable dictionary object.
The key of the element to remove.
Gets an object containing the values in the immutable dictionary.
An containing the values in the immutable dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Adds an element with the specified key and value to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pair.
The key of the element to add.
The value of the element to add.
Adds the specified key/value pairs to the immutable dictionary.
A new immutable dictionary that contains the additional key/value pairs.
The key/value pairs to add.
Retrieves an empty dictionary that has the same ordering and key/value comparison rules as this dictionary instance.
An empty dictionary with equivalent ordering and key/value comparison rules.
Removes the element with the specified key from the immutable dictionary.
A new immutable dictionary with the matching entry removed; or this instance if the specified key cannot be found in the dictionary.
The key of the element to remove.
Removes the elements with the specified keys from the immutable dictionary.
A new immutable dictionary with the specified keys removed; or this instance if the specified keys cannot be found in the dictionary.
The keys of the elements to remove.
Sets the specified key and value in the immutable dictionary, possibly overwriting an existing value for the key.
A new immutable dictionary that contains the specified key/value pair.
The key of the entry to add.
The key value to set.
Sets the specified key/value pairs in the immutable dictionary, possibly overwriting existing values for the keys.
A new immutable dictionary that contains the specified key/value pairs.
The key/value pairs to set in the dictionary. If any of the keys already exist in the dictionary, this method will overwrite their previous values.
Creates an immutable sorted dictionary with the same contents as this dictionary that can be efficiently mutated across multiple operations by using standard mutable interfaces.
A collection with the same contents as this dictionary.
Determines whether this dictionary contains a specified key.
true if a match for is found; otherwise, false.
The key to search for.
The matching key located in the dictionary if found, or if no match is found.
Gets the value associated with the specified key.
true if the dictionary contains an element with the specified key; otherwise, false.
The key whose value will be retrieved.
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, contains the default value for the type of the parameter.
Gets the value comparer used to determine whether values are equal.
The value comparer used to determine whether values are equal.
Gets the values in the immutable sorted dictionary.
The values in the dictionary.
Gets an instance of the immutable sorted dictionary that uses the specified key comparer.
An instance of the immutable dictionary that uses the given comparer.
The key comparer to use.
Gets an instance of the immutable sorted dictionary that uses the specified key and value comparers.
An instance of the immutable dictionary that uses the given comparers.
The key comparer to use.
The value comparer to use.
Represents a sorted dictionary that mutates with little or no memory allocations and that can produce or build on immutable sorted dictionary instances very efficiently.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds the specified item to the immutable sorted dictionary.
The object to add to the dictionary.
Adds an element that has the specified key and value to the immutable sorted dictionary.
The key of the element to add.
The value of the element to add.
Adds a sequence of values to the immutable sorted dictionary.
The items to add to the dictionary.
Removes all items from the immutable sorted dictionary.
Determines whether the immutable sorted dictionary contains a specific value.
true if is found in the dictionary; otherwise, false.
The object to locate in the dictionary.
Determines whether the immutable sorted dictionary contains an element with the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate in the dictionary.
Determines whether the immutable sorted dictionary contains an element with the specified value.
true if the immutable sorted dictionary contains an element with the specified value; otherwise, false.
The value to locate in the dictionary. The value can be null for reference types.
Gets the number of elements in this immutable sorted dictionary.
The number of elements in this dictionary.
Returns an enumerator that iterates through the immutable sorted dictionary.
An enumerator that can be used to iterate through the dictionary.
Gets the value for a given key if a matching key exists in the dictionary; otherwise the default value.
The value for the key, or default(TValue) if no matching key was found.
The key to search for.
Gets the value for a given key if a matching key exists in the dictionary; otherwise the default value.
The value for the key, or if no matching key was found.
The key to search for.
The default value to return if no matching key is found in the dictionary.
Gets or sets the value for a specified key in the immutable sorted dictionary.
The value associated with the given key.
The key to retrieve the value for.
Gets or sets the key comparer.
The key comparer.
Gets a strongly typed, read-only collection of elements.
A strongly typed, read-only collection of elements.
Removes the first occurrence of a specific object from the immutable sorted dictionary.
true if was successfully removed from the dictionary; otherwise, false. This method also returns false if is not found in the dictionary.
The object to remove from the dictionary.
Removes the element with the specified key from the immutable sorted dictionary.
true if the element is successfully removed; otherwise, false. This method also returns false if was not found in the original dictionary.
The key of the element to remove.
Removes any entries with keys that match those found in the specified sequence from the immutable sorted dictionary.
The keys for entries to remove from the dictionary.
Copies the elements of the dictionary to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the dictionary is read-only.
Always false.
Gets an containing the keys of the dictionary.
An containing the keys of the object that implements the dictionary.
Gets an containing the values in the dictionary.
An containing the values in the object that implements the dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Copies the elements of the dictionary to an array, starting at a particular array index.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The one-dimensional array that is the destination of the elements copied from the dictionary. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the dictionary is synchronized (thread safe).
true if access to the dictionary is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the dictionary.
An object that can be used to synchronize access to the dictionary.
Adds an element with the provided key and value to the dictionary object.
The key of the element to add.
The value of the element to add.
Determines whether the dictionary object contains an element with the specified key.
true if the dictionary contains an element with the key; otherwise, false.
The key to locate.
Returns an object for the dictionary.
An object for the dictionary.
Gets a value indicating whether the dictionary object has a fixed size.
true if the dictionary object has a fixed size; otherwise, false.
Gets a value indicating whether the dictionary is read-only.
true if the dictionary is read-only; otherwise, false.
Gets or sets the element with the specified key.
The element that has the specified key.
The key that specifies the item to get or set.
Gets an containing the keys of the dictionary.
An containing the keys of the object that implements the dictionary.
Removes the element with the specified key from the dictionary.
The key of the element to remove.
Gets an containing the values in the dictionary.
An containing the values in the object that implements the dictionary.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Creates an immutable sorted dictionary based on the contents of this instance.
An immutable sorted dictionary.
Determines whether this dictionary contains a specified key.
true if a match for is found; otherwise, false.
The key to search for.
The matching key located in the dictionary if found, or if no match is found.
Gets the value associated with the specified key.
true if the object that implements the dictionary contains an element with the specified key; otherwise, false.
The key whose value will be retrieved.
When this method returns, contains the value associated with the specified key, if the key is found; otherwise, contains the default value for the type of the parameter. This parameter is passed uninitialized.
Gets or sets the value comparer.
The value comparer.
Gets a collection that contains the values of the immutable sorted dictionary.
A collection that contains the values of the object that implements the dictionary.
Enumerates the contents of a binary tree.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element at the current position of the enumerator.
Releases the resources used by the current instance of the class.
Advances the enumerator to the next element of the immutable sorted dictionary.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the sorted dictionary.
Sets the enumerator to its initial position, which is before the first element in the immutable sorted dictionary.
Gets the current element in the immutable sorted dictionary.
The current element in the immutable sorted dictionary.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable sorted set.
An empty immutable sorted set.
The type of items to be stored in the immutable set.
Creates an empty immutable sorted set that uses the specified comparer.
An empty immutable set.
The implementation to use when comparing items in the set.
The type of items in the immutable set.
Creates a new immutable sorted set that contains the specified item and uses the specified comparer.
A new immutable set that contains the specified item.
The implementation to use when comparing items in the set.
The item to prepopulate the set with.
The type of items stored in the immutable set.
Creates a new immutable sorted set that contains the specified array of items and uses the specified comparer.
A new immutable set that contains the specified items.
The implementation to use when comparing items in the set.
An array that contains the items to prepopulate the set with.
The type of items in the immutable set.
Creates a new immutable sorted set that contains the specified item.
A new immutable set that contains the specified item.
The item to prepopulate the set with.
The type of items in the immutable set.
Creates a new immutable sorted set that contains the specified array of items.
A new immutable set that contains the specified items.
An array that contains the items to prepopulate the set with.
The type of items in the immutable set.
Returns a collection that can be used to build an immutable sorted set.
The immutable collection builder.
The type of items stored by the collection.
Returns a collection that can be used to build an immutable sorted set.
The immutable collection.
The comparer used to compare items in the set for equality.
The type of items stored by the collection.
Creates a new immutable collection that contains the specified items.
The new immutable set that contains the specified items.
The comparer to use to compare elements in this set.
The items to add to the set before it’s immutable.
The type of items stored by the collection.
Creates a new immutable collection that contains the specified items.
The new immutable set that contains the specified items.
The items to add to the set with before it’s immutable.
The type of items stored by the collection.
Enumerates a sequence and produces an immutable sorted set of its contents.
An immutable sorted set that contains the items in the specified sequence.
The sequence to enumerate.
The type of the elements in the sequence.
Enumerates a sequence, produces an immutable sorted set of its contents, and uses the specified comparer.
An immutable sorted set that contains the items in the specified sequence.
The sequence to enumerate.
The comparer to use for initializing and adding members to the sorted set.
The type of the elements in the sequence.
Represents an immutable sorted set implementation.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of elements in the set.
Adds the specified value to this immutable sorted set.
A new set with the element added, or this set if the element is already in this set.
The value to add.
Removes all elements from the immutable sorted set.
An empty set with the elements removed.
Determines whether this immutable sorted set contains the specified value.
true if the set contains the specified value; otherwise, false.
The value to check for.
Gets the number of elements in the immutable sorted set.
The number of elements in the immutable sorted set.
Gets an empty immutable sorted set.
An empty immutable sorted set.
Removes a specified set of items from this immutable sorted set.
A new set with the items removed; or the original set if none of the items were in the set.
The items to remove from this set.
Returns an enumerator that iterates through the immutable sorted set.
An enumerator that can be used to iterate through the set.
Gets the position within this immutable sorted set that the specified value appears in.
The index of the specified in the sorted set, if is found. If is not found and is less than one or more elements in this set, this method returns a negative number that is the bitwise complement of the index of the first element that is larger than value. If is not found and is greater than any of the elements in the set, this method returns a negative number that is the bitwise complement of the index of the last element plus 1.
The value whose position is being sought.
Creates an immutable sorted set that contains elements that exist both in this set and in the specified set.
A new immutable sorted set that contains any elements that exist in both sets.
The set to intersect with this one.
Gets a value that indicates whether this immutable sorted set is empty.
true if this set is empty; otherwise, false.
Determines whether the current immutable sorted set is a proper (strict) subset of the specified collection.
true if the current set is a proper subset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable sorted set is a proper superset of a specified collection.
true if the current set is a proper superset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable sorted set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current immutable sorted set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set.
Gets the element of the immutable sorted set at the given index.
The element at the given index.
The index of the element to retrieve from the sorted set.
Gets the comparer used to sort keys in the immutable sorted set.
The comparer used to sort keys.
Gets the maximum value in the immutable sorted set, as defined by the comparer.
The maximum value in the set.
Gets the minimum value in the immutable sorted set, as defined by the comparer.
The minimum value in the set.
Determines whether the current immutable sorted set and a specified collection share common elements.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set.
Removes the specified value from this immutable sorted set.
A new immutable sorted set with the element removed, or this set if the element was not found in the set.
The element to remove.
Returns an that iterates over this immutable sorted set in reverse order.
An enumerator that iterates over the immutable sorted set in reverse order.
Determines whether the current immutable sorted set and the specified collection contain the same elements.
true if the sets are equal; otherwise, false.
The collection to compare to the current set.
Creates an immutable sorted set that contains elements that exist either in this set or in a given sequence, but not both.
The new immutable sorted set.
The other sequence of items.
Adds the specified value to the collection.
The value to add.
Removes all the items from the collection.
Copies the elements of the collection to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from collection. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether the immutable sorted set is read-only.
true if the set is read-only; otherwise, false.
Removes the first occurrence of a specific object from the collection.
true if was successfully removed from the collection; otherwise, false.
The object to remove from the collection.
Returns an enumerator that iterates through the collection.
An enumerator that can be used to iterate through the collection.
Inserts an item in the set at the specified index..
The zero-based index at which should be inserted.
The object to insert into the set.
Gets or sets the element at the specified index.
The element at the specified index.
The index of the element to get or set.
Removes the item at the specified index.
The zero-based index of the item to remove.
Adds an element to the current set and returns a value to indicate if the element was successfully added.
true if the element is added to the set; false if the element is already in the set.
The element to add to the set.
Removes all elements in the specified collection from the current set.
The collection of items to remove from the set.
Modifies the current set so that it contains only elements that are also in a specified collection
The collection to compare to the current set.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Modifies the current set so that it contains all elements that are present in either the current set or the specified collection.
The collection to compare to the current set.
Copies the elements of the set to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the set. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the immutable sorted set is synchronized.
true if access to the set is synchronized; otherwise, false.
Gets an object that can be used to synchronize access to the immutable sorted set.
An object that can be used to synchronize access to the set.
Returns an enumerator that iterates through a collection.
An enumerator object that can be used to iterate through the collection.
Adds an item to the set.
The position into which the new element was inserted, or -1 to indicate that the item was not inserted into the collection.
The object to add to the set.
The set is read-only or has a fixed size.
Removes all items from the set.
Determines whether the set contains a specific value.
true if the object is found in the set; otherwise, false.
The object to locate in the set.
Determines the index of a specific item in the set.
The index of if found in the list; otherwise, -1.
The object to locate in the set.
Inserts an item into the set at the specified index.
The zero-based index at which should be inserted.
The object to insert into the set.
The set is read-only or has a fixed size.
Gets a value indicating whether the immutable sorted set has a fixed size.
true if the set has a fixed size; otherwise, false.
Gets a value indicating whether the immutable sorted set is read-only.
true if the set is read-only; otherwise, false.
Gets or sets the element at the specified index.
The element at the specified index.
The index of the item to retrieve.
Removes the first occurrence of a specific object from the set.
The object to remove from the set.
The set is read-only or has a fixed size.
Removes the item at the specified index of the set.
The zero-based index of the item to remove.
The set is read-only or has a fixed size.
Adds the specified element to this immutable set.
A new set with the element added, or this set if the element is already in the set.
The element to add.
Retrieves an empty immutable set that has the same sorting and ordering semantics as this instance.
An empty set that has the same sorting and ordering semantics as this instance.
Removes the elements in the specified collection from the current immutable set.
The new set with the items removed; or the original set if none of the items were in the set.
The items to remove from this set.
Creates an immutable set that contains elements that exist in both this set and the specified set.
A new immutable set that contains any elements that exist in both sets.
The collection to compare to the current set.
Removes the specified element from this immutable set.
A new set with the specified element removed, or the current set if the element cannot be found in the set.
The element to remove.
Creates an immutable set that contains only elements that are present either in the current set or in the specified collection, but not both.
A new set that contains the elements that are present only in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Creates a new immutable set that contains all elements that are present in either the current set or in the specified collection.
A new immutable set with the items added; or the original set if all the items were already in the set.
The collection to add elements from.
Creates a collection that has the same contents as this immutable sorted set that can be efficiently manipulated by using standard mutable interfaces.
The sorted set builder.
Searches the set for a given value and returns the equal value it finds, if any.
A value indicating whether the search was successful.
The value to search for.
The value from the set that the search found, or the original value if the search yielded no match.
Adds a given set of items to this immutable sorted set.
The new set with the items added; or the original set if all the items were already in the set.
The items to add.
Returns the immutable sorted set that has the specified key comparer.
The immutable sorted set that has the specified key comparer.
The comparer to check for.
Represents a sorted set that enables changes with little or no memory allocations, and efficiently manipulates or builds immutable sorted sets.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Adds an element to the current set and returns a value to indicate whether the element was successfully added.
true if the element is added to the set; false if the element is already in the set
The element to add to the set.
Removes all elements from this set.
Determines whether the set contains the specified object.
true if is found in the set; otherwise, false.
The object to locate in the set.
Gets the number of elements in the immutable sorted set.
The number of elements in this set.
Removes the specified set of items from the current set.
The collection of items to remove from the set.
Returns an enumerator that iterates through the set.
A enumerator that can be used to iterate through the set.
Modifies the current set so that it contains only elements that are also in a specified collection.
The collection to compare to the current set.
Determines whether the current set is a proper (strict) subset of a specified collection.
true if the current set is a proper subset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current set is a proper (strict) superset of a specified collection.
true if the current set is a proper superset of ; otherwise, false.
The collection to compare to the current set.
Determines whether the current set is a subset of a specified collection.
true if the current set is a subset of ; otherwise, false.
The collection is compare to the current set.
Determines whether the current set is a superset of a specified collection.
true if the current set is a superset of ; otherwise, false.
The collection to compare to the current set.
Gets or sets the object that is used to determine equality for the values in the immutable sorted set.
The comparer that is used to determine equality for the values in the set.
Gets the maximum value in the immutable sorted set, as defined by the comparer.
The maximum value in the set.
Gets the minimum value in the immutable sorted set, as defined by the comparer.
The minimum value in the set.
Determines whether the current set overlaps with the specified collection.
true if the current set and share at least one common element; otherwise, false.
The collection to compare to the current set.
Removes the first occurrence of the specified object from the set.
true if was removed from the set; false if was not found in the set.
The object to remove from the set.
Returns an enumerator that iterates over the immutable sorted set in reverse order.
An enumerator that iterates over the set in reverse order.
Determines whether the current set and the specified collection contain the same elements.
true if the current set is equal to ; otherwise, false.
The collection to compare to the current set.
Modifies the current set so that it contains only elements that are present either in the current set or in the specified collection, but not both.
The collection to compare to the current set.
Adds an element to the current set and returns a value to indicate whether the element was successfully added.
The element to add to the set.
Copies the elements of the collection to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from collection. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether this instance is read-only.
Always false.
Returns an enumerator that iterates through the collection.
A enumerator that can be used to iterate through the collection.
Copies the elements of the set to an array, starting at a particular array index.
The one-dimensional array that is the destination of the elements copied from the set. The array must have zero-based indexing.
The zero-based index in at which copying begins.
Gets a value indicating whether access to the immutable sorted set is synchronized (thread safe).
true if access to the set is synchronized (thread safe); otherwise, false.
Gets an object that can be used to synchronize access to the immutable sorted set.
An object that can be used to synchronize access to the set.
Returns an enumerator that iterates through the collection.
A enumerator that can be used to iterate through the collection.
Creates an immutable sorted set based on the contents of this instance.
An immutable set.
Modifies the current set so that it contains all elements that are present in both the current set and in the specified collection.
The collection to compare to the current state.
Enumerates the contents of a binary tree.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The element at the current position of the enumerator.
Releases the resources used by the current instance of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Advances the enumerator to the next element of the immutable sorted set.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the sorted set.
Sets the enumerator to its initial position, which is before the first element in the immutable sorted set.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the current element in the immutable sorted set.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The current element in the immutable sorted set.
Provides a set of initialization methods for instances of the class.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Creates an empty immutable stack.
An empty immutable stack.
The type of items to be stored in the immutable stack.
Creates a new immutable stack that contains the specified item.
A new immutable collection that contains the specified item.
The item to prepopulate the stack with.
The type of items in the immutable stack.
Creates a new immutable stack that contains the specified array of items.
A new immutable stack that contains the specified items.
An array that contains the items to prepopulate the stack with.
The type of items in the immutable stack.
Creates a new immutable stack that contains the specified items.
An immutable stack that contains the specified items.
The items to add to the stack before it’s immutable.
The type of items in the stack.
Removes the specified item from an immutable stack.
A stack; never null.
The stack to modify.
The item to remove from the stack.
The type of items contained in the stack.
Represents an immutable stack.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
The type of element on the stack.
Removes all objects from the immutable stack.
An empty immutable stack.
Gets an empty immutable stack.
An empty immutable stack.
Returns an enumerator that iterates through the immutable stack.
An enumerator that can be used to iterate through the stack.
Gets a value that indicates whether this instance of the immutable stack is empty.
true if this instance is empty; otherwise, false.
Returns the object at the top of the stack without removing it.
The object at the top of the stack.
Removes the element at the top of the immutable stack and returns the stack after the removal.
A stack; never null.
Removes the specified element from the immutable stack and returns the stack after the removal.
A stack; never null.
The value to remove from the stack.
Inserts an object at the top of the immutable stack and returns the new stack.
The new stack.
The object to push onto the stack.
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.
Removes all elements from the immutable stack.
The empty immutable stack.
Removes the element at the top of the immutable stack and returns the new stack.
The new stack; never null.
Inserts an element at the top of the immutable stack and returns the new stack.
The new stack.
The element to push onto the stack.
Enumerates the contents of an immutable stack without allocating any memory.NuGet package: System.Collections.Immutable (about immutable collections and how to install)
Gets the element at the current position of the enumerator.
The element at the current position of the enumerator.
Advances the enumerator to the next element of the immutable stack.
true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the stack.
LINQ extension method overrides that offer greater efficiency for than the standard LINQ methodsNuGet package: System.Collections.Immutable (about immutable collections and how to install)
Applies a function to a sequence of elements in a cumulative way.
The final value after the cumulative function has been applied to all elements.
The collection to apply the function to.
A function to be invoked on each element, in a cumulative way.
The type of element contained by the collection.
Applies a function to a sequence of elements in a cumulative way.
The final accumulator value.
The collection to apply the function to.
The initial accumulator value.
A function to be invoked on each element, in a cumulative way.
The type of the accumulated value.
The type of element contained by the collection.
Applies a function to a sequence of elements in a cumulative way.
The final accumulator value.
The collection to apply the function to.
The initial accumulator value.
A function to be invoked on each element, in a cumulative way.
The type of the accumulated value.
The type of result returned by the result selector.
The type of element contained by the collection.
Gets a value indicating whether all elements in this array match a given condition.
true if every element of the source sequence passes the test in the specified predicate; otherwise, false.
The array to check for matches.
The predicate.
The type of element contained by the collection.
Gets a value indicating whether the array contains any elements.
true if the array contains an elements; otherwise, false.
The array to check for elements.
The type of element contained by the collection.
Gets a value indicating whether the array contains any elements that match a specified condition.
true if an element matches the specified condition; otherwise, false.
The array to check for elements.
The delegate that defines the condition to match to an element.
The type of element contained by the collection.
Returns a value indicating whether this collection contains any elements.
true if the array builder contains any elements; otherwise, false.
The builder to check for matches.
The type of elements in the array.
Returns the element at a specified index in the array.
The item at the specified index.
The array to find an element in.
The index for the element to retrieve.
The type of element contained by the collection.
Returns the element at a specified index in a sequence or a default value if the index is out of range.
The item at the specified index, or the default value if the index is not found.
The array to find an element in.
The index for the element to retrieve.
The type of element contained by the collection.
Returns the first element in an array.
The first item in the array.
The array to get an item from.
The type of element contained by the collection.
If the array is empty.
Returns the first element in a sequence that satisfies a specified condition.
The first item in the list if it meets the condition specified by .
The array to get an item from.
The delegate that defines the conditions of the element to search for.
The type of element contained by the collection.
If the array is empty.
Returns the first element in the collection.
The first item in the list.
The builder to retrieve an item from.
The type of items in the array.
If the array is empty.
Returns the first element of a sequence, or a default value if the sequence contains no elements.
The first item in the list, if found; otherwise the default value for the item type.
The array to retrieve items from.
The type of element contained by the collection.
Returns the first element of the sequence that satisfies a condition or a default value if no such element is found.
The first item in the list, if found; otherwise the default value for the item type.
The array to retrieve elments from.
The delegate that defines the conditions of the element to search for.
The type of element contained by the collection.
Returns the first element in the collection, or the default value if the collection is empty.
The first item in the list, if found; otherwise the default value for the item type.
The builder to retrieve an element from.
The type of item in the builder.
Returns the last element of the array.
The last element in the array.
The array to retrieve items from.
The type of element contained by the array.
Thrown if the collection is empty.
Returns the last element of a sequence that satisfies a specified condition.
The last element of the array that satisfies the condition.
The array to retrieve elements from.
The delegate that defines the conditions of the element to retrieve.
The type of element contained by the collection.
Thrown if the collection is empty.
Returns the last element in the collection.
The last element in the builder.
The builder to retrieve elements from.
The type of item in the builder.
Thrown if the collection is empty.
Returns the last element of a sequence, or a default value if the sequence contains no elements.
The last element of a sequence, or a default value if the sequence contains no elements.
The array to retrieve items from.
The type of element contained by the collection.
Returns the last element of a sequence that satisfies a condition or a default value if no such element is found.
The last element of a sequence, or a default value if the sequence contains no elements.
The array to retrieve an element from.
The delegate that defines the conditions of the element to search for.
The type of element contained by the collection.
Returns the last element in the collection, or the default value if the collection is empty.
The last element of a sequence, or a default value if the sequence contains no elements.
The builder to retrieve an element from.
The type of item in the builder.
Projects each element of a sequence into a new form.
An whose elements are the result of invoking the transform function on each element of source.
The immutable array to select items from.
A transform function to apply to each element.
The type of element contained by the collection.
The type of the result element.
Determines whether two sequences are equal according to an equality comparer.
true to indicate the sequences are equal; otherwise, false.
The array to use for comparison.
The items to use for comparison.
The comparer to use to check for equality.
The type of element in the compared array.
The type of element contained by the collection.
Determines whether two sequences are equal according to an equality comparer.
true to indicate the sequences are equal; otherwise, false.
The array to use for comparison.
The items to use for comparison.
The comparer to use to check for equality.
The type of element in the compared array.
The type of element contained by the collection.
Determines whether two sequences are equal according to an equality comparer.
true to indicate the sequences are equal; otherwise, false.
The array to use for comparison.
The items to use for comparison.
The comparer to use to check for equality.
The type of element in the compared array.
The type of element contained by the collection.
Returns the only element of a sequence, and throws an exception if there is not exactly one element in the sequence.
The element in the sequence.
The array to retrieve the element from.
The type of element contained by the collection.
Returns the only element of a sequence that satisfies a specified condition, and throws an exception if more than one such element exists.
Returns .
The type of element contained by the collection.
Returns the only element of the array, or a default value if the sequence is empty; this method throws an exception if there is more than one element in the sequence.
The element in the array, or the default value if the array is empty.
The type of element contained by the collection.
Returns the only element of a sequence that satisfies a specified condition or a default value if no such element exists; this method throws an exception if more than one element satisfies the condition.
The element if it satisfies the specified condition; otherwise the default element.
The array to get the element from.
The condition the element must satisfy.
The type of element contained by the collection.
Copies the contents of this array to a mutable array.
The newly instantiated array.
The type of element contained by the collection.
Creates a dictionary based on the contents of this array.
The newly initialized dictionary.
The array to create a dictionary from.
The key selector.
The type of the key.
The type of element contained by the collection.
Creates a dictionary based on the contents of this array.
The newly initialized dictionary.
The array to create a dictionary from.
The key selector.
The comparer to initialize the dictionary with.
The type of the key.
The type of element contained by the collection.
Creates a dictionary based on the contents of this array.
The newly initialized dictionary.
The array to create a dictionary from.
The key selector.
The element selector.
The type of the key.
The type of the element.
The type of element contained by the collection.
Creates a dictionary based on the contents of this array.
The newly initialized dictionary.
The array to create a dictionary from.
The key selector.
The element selector.
The comparer to initialize the dictionary with.
The type of the key.
The type of the element.
The type of element contained by the collection.
Filters a sequence of values based on a predicate.
Returns that contains elements that meet the condition.
The array to filter.
The condition to use for filtering the array content.
The type of element contained by the collection.
Provides an that can be used with in interop scenarios.
Initializes a new instance of the and ensures the array is pinned in memory.
An immutable array that stays in the same memory location.
The array to use in interop.
The type of element stored in the array.
Occurs if the type in the array is not blittable, meaning it cannot be represented in unmanaged code. For more information, see Blittable and Non-Blittable Types.
Releases the resource held by this instance and unpins the array passed to the constructor.
Gets a pointer to the immutable array to for use with a platform invoke call to unmanaged code.
A pointer that can be used for calls to unmanaged code.