System.Collections.NonGeneric Implements the interface using an array whose size is dynamically increased as required.To browse the .NET Framework source code for this type, see the Reference Source. 1 Initializes a new instance of the class that is empty and has the default initial capacity. Initializes a new instance of the class that contains elements copied from the specified collection and that has the same initial capacity as the number of elements copied. The whose elements are copied to the new list. is null. Initializes a new instance of the class that is empty and has the specified initial capacity. The number of elements that the new list can initially store. is less than zero. Creates an wrapper for a specific . The wrapper around the . The to wrap. is null. 2 Adds an object to the end of the . The index at which the has been added. The to be added to the end of the . The value can be null. The is read-only.-or- The has a fixed size. 1 Adds the elements of an to the end of the . The whose elements should be added to the end of the . The collection itself cannot be null, but it can contain elements that are null. is null. The is read-only.-or- The has a fixed size. 1 Searches a range of elements in the sorted for an element using the specified comparer and returns the zero-based index of the element. The zero-based index of in the sorted , if is found; otherwise, a negative number, which 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 zero-based starting index of the range to search. The length of the range to search. The to locate. The value can be null. The implementation to use when comparing elements.-or- null to use the default comparer that is the implementation of each element. and do not denote a valid range in the .-or- is null and neither nor the elements of implement the interface. is null and is not of the same type as the elements of the . is less than zero.-or- is less than zero. 1 Searches the entire sorted for an element using the default comparer and returns the zero-based index of the element. The zero-based index of in the sorted , if is found; otherwise, a negative number, which 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 to locate. The value can be null. Neither nor the elements of implement the interface. is not of the same type as the elements of the . 1 Searches the entire sorted for an element using the specified comparer and returns the zero-based index of the element. The zero-based index of in the sorted , if is found; otherwise, a negative number, which 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 to locate. The value can be null. The implementation to use when comparing elements.-or- null to use the default comparer that is the implementation of each element. is null and neither nor the elements of implement the interface. is null and is not of the same type as the elements of the . 1 Gets or sets the number of elements that the can contain. The number of elements that the can contain. is set to a value that is less than . There is not enough memory available on the system. 1 Removes all elements from the . The is read-only.-or- The has a fixed size. 1 Creates a shallow copy of the . A shallow copy of the . 2 Determines whether an element is in the . true if is found in the ; otherwise, false. The to locate in the . The value can be null. 1 Copies the entire to a compatible one-dimensional , starting at the beginning of the target array. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. is null. is multidimensional.-or- The number of elements in the source is greater than the number of elements that the destination can contain. The type of the source cannot be cast automatically to the type of the destination . 2 Copies the entire to a compatible one-dimensional , starting at the specified index of the target array. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Copies a range of elements from the to a compatible one-dimensional , starting at the specified index of the target array. The zero-based index in the source at which copying begins. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. The number of elements to copy. is null. is less than zero.-or- is less than zero.-or- is less than zero. is multidimensional.-or- is equal to or greater than the of the source .-or- The number of elements from to the end of the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of elements actually contained in the . The number of elements actually contained in the . 1 Returns an wrapper with a fixed size. An wrapper with a fixed size. The to wrap. is null. 2 Returns an wrapper with a fixed size. An wrapper with a fixed size. The to wrap. is null. 2 Returns an enumerator for the entire . An for the entire . 2 Returns an enumerator for a range of elements in the . An for the specified range of elements in the . The zero-based starting index of the section that the enumerator should refer to. The number of elements in the section that the enumerator should refer to. is less than zero.-or- is less than zero. and do not specify a valid range in the . 2 Returns an which represents a subset of the elements in the source . An which represents a subset of the elements in the source . The zero-based index at which the range starts. The number of elements in the range. is less than zero.-or- is less than zero. and do not denote a valid range of elements in the . 2 Searches for the specified and returns the zero-based index of the first occurrence within the entire . The zero-based index of the first occurrence of within the entire , if found; otherwise, -1. The to locate in the . The value can be null. 1 Searches for the specified and returns the zero-based index of the first occurrence within the range of elements in the that extends from the specified index to the last element. The zero-based index of the first occurrence of within the range of elements in the that extends from to the last element, if found; otherwise, -1. The to locate in the . The value can be null. The zero-based starting index of the search. 0 (zero) is valid in an empty list. is outside the range of valid indexes for the . 1 Searches for the specified 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 to locate in the . The value can be null. 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. is outside the range of valid indexes for the .-or- is less than zero.-or- and do not specify a valid section in the . 1 Inserts an element into the at the specified index. The zero-based index at which should be inserted. The to insert. The value can be null. is less than zero.-or- is greater than . The is read-only.-or- The has a fixed size. 1 Inserts the elements of a collection into the at the specified index. The zero-based index at which the new elements should be inserted. The whose elements should be inserted into the . The collection itself cannot be null, but it can contain elements that are null. is null. is less than zero.-or- is greater than . The is read-only.-or- The has a fixed size. 2 Gets a value indicating whether the has a fixed size. true if the has a fixed size; otherwise, false. The default is false. 2 Gets a value indicating whether the is read-only. true if the is read-only; otherwise, false. The default is false. 2 Gets a value indicating whether access to the is synchronized (thread safe). true if access to the is synchronized (thread safe); otherwise, false. The default is false. 2 Gets or sets the element at the specified index. The element at the specified index. The zero-based index of the element to get or set. is less than zero.-or- is equal to or greater than . 1 Searches for the specified and returns the zero-based index of the last occurrence within the entire . The zero-based index of the last occurrence of within the entire the , if found; otherwise, -1. The to locate in the . The value can be null. 2 Searches for the specified and returns the zero-based index of the last occurrence within the range of elements in the 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 that extends from the first element to , if found; otherwise, -1. The to locate in the . The value can be null. The zero-based starting index of the backward search. is outside the range of valid indexes for the . 2 Searches for the specified 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. The zero-based index of the last occurrence of within the range of elements in the that contains number of elements and ends at , if found; otherwise, -1. The to locate in the . The value can be null. The zero-based starting index of the backward search. The number of elements in the section to search. is outside the range of valid indexes for the .-or- is less than zero.-or- and do not specify a valid section in the . 2 Returns a read-only wrapper. A read-only wrapper around . The to wrap. is null. 2 Returns a read-only wrapper. A read-only wrapper around . The to wrap. is null. 2 Removes the first occurrence of a specific object from the . The to remove from the . The value can be null. The is read-only.-or- The has a fixed size. 1 Removes the element at the specified index of the . The zero-based index of the element to remove. is less than zero.-or- is equal to or greater than . The is read-only.-or- The has a fixed size. 1 Removes a range of elements from the . The zero-based starting index of the range of elements to remove. The number of elements to remove. is less than zero.-or- is less than zero. and do not denote a valid range of elements in the . The is read-only.-or- The has a fixed size. 2 Returns an whose elements are copies of the specified value. An with number of elements, all of which are copies of . The to copy multiple times in the new . The value can be null. The number of times should be copied. is less than zero. 2 Reverses the order of the elements in the entire . The is read-only. 2 Reverses the order of the elements in the specified range. The zero-based starting index of the range to reverse. The number of elements in the range to reverse. is less than zero.-or- is less than zero. and do not denote a valid range of elements in the . The is read-only. 2 Copies the elements of a collection over a range of elements in the . The zero-based index at which to start copying the elements of . The whose elements to copy to the . The collection itself cannot be null, but it can contain elements that are null. is less than zero.-or- plus the number of elements in is greater than . is null. The is read-only. 2 Sorts the elements in the entire . The is read-only. 1 Sorts the elements in the entire using the specified comparer. The implementation to use when comparing elements.-or- A null reference (Nothing in Visual Basic) to use the implementation of each element. The is read-only. An error occurred while comparing two elements. null is passed for , and the elements in the list do not implement . 1 Sorts the elements in a range of elements in 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- A null reference (Nothing in Visual Basic) to use the implementation of each element. is less than zero.-or- is less than zero. and do not specify a valid range in the . The is read-only. An error occurred while comparing two elements. 1 Returns an wrapper that is synchronized (thread safe). An wrapper that is synchronized (thread safe). The to synchronize. is null. 2 Returns an wrapper that is synchronized (thread safe). An wrapper that is synchronized (thread safe). The to synchronize. is null. 2 Gets an object that can be used to synchronize access to the . An object that can be used to synchronize access to the . 2 Copies the elements of the to a new array. An array containing copies of the elements of the . 1 Copies the elements of the to a new array of the specified element type. An array of the specified element type containing copies of the elements of the . The element of the destination array to create and copy elements to. is null. The type of the source cannot be cast automatically to the specified type. 1 Sets the capacity to the actual number of elements in the . The is read-only.-or- The has a fixed size. 2 Compares two objects for equivalence, ignoring the case of strings. 2 Initializes a new instance of the class using the of the current thread. Initializes a new instance of the class using the specified . The to use for the new . is null. Performs a case-insensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other. A signed integer that indicates the relative values of and , as shown in the following table.Value Meaning Less than zero is less than , with casing ignored. Zero equals , with casing ignored. Greater than zero is greater than , with casing ignored. The first object to compare. The second object to compare. Neither nor implements the interface.-or- and are of different types. 2 Gets an instance of that is associated with the of the current thread and that is always available. An instance of that is associated with the of the current thread. 1 Gets an instance of that is associated with and that is always available. An instance of that is associated with . 1 Provides the abstract base class for a strongly typed collection. 2 Initializes a new instance of the class with the default initial capacity. Initializes a new instance of the class with the specified capacity. The number of elements that the new list can initially store. Gets or sets the number of elements that the can contain. The number of elements that the can contain. is set to a value that is less than . There is not enough memory available on the system. 2 Removes all objects from the instance. This method cannot be overridden. 2 Gets the number of elements contained in the instance. This property cannot be overridden. The number of elements contained in the instance.Retrieving the value of this property is an O(1) operation. 2 Returns an enumerator that iterates through the instance. An for the instance. 2 Gets an containing the list of elements in the instance. An representing the instance itself.Retrieving the value of this property is an O(1) operation. Gets an containing the list of elements in the instance. An representing the instance itself. Performs additional custom processes when clearing the contents of the instance. Performs additional custom processes after clearing the contents of the instance. Performs additional custom processes before inserting a new element into the instance. The zero-based index at which to insert . The new value of the element at . Performs additional custom processes after inserting a new element into the instance. The zero-based index at which to insert . The new value of the element at . Performs additional custom processes when removing an element from the instance. The zero-based index at which can be found. The value of the element to remove from . Performs additional custom processes after removing an element from the instance. The zero-based index at which can be found. The value of the element to remove from . Performs additional custom processes before setting a value in the instance. The zero-based index at which can be found. The value to replace with . The new value of the element at . Performs additional custom processes after setting a value in the instance. The zero-based index at which can be found. The value to replace with . The new value of the element at . Performs additional custom processes when validating a value. The object to validate. is null. Removes the element at the specified index of the instance. This method is not overridable. The zero-based index of the element to remove. is less than zero.-or- is equal to or greater than . 2 Copies the entire to a compatible one-dimensional , starting at the specified index of the target array. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or-The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . Gets a value indicating whether access to the is synchronized (thread safe). true if access to the is synchronized (thread safe); otherwise, false. The default is false. Gets an object that can be used to synchronize access to the . An object that can be used to synchronize access to the . Adds an object to the end of the . The index at which the has been added. The to be added to the end of the . The is read-only.-or-The has a fixed size. Determines whether the contains a specific element. true if the contains the specified ; otherwise, false. The to locate in the . Searches for the specified and returns the zero-based index of the first occurrence within the entire . The zero-based index of the first occurrence of within the entire , if found; otherwise, -1. The to locate in the . Inserts an element into the at the specified index. The zero-based index at which should be inserted. The to insert. is less than zero.-or- is greater than . The is read-only.-or-The has a fixed size. Gets a value indicating whether the has a fixed size. true if the has a fixed size; otherwise, false. The default is false. Gets a value indicating whether the is read-only. true if the is read-only; otherwise, false. The default is false. Gets or sets the element at the specified index. The element at the specified index. The zero-based index of the element to get or set. is less than zero.-or- is equal to or greater than . Removes the first occurrence of a specific object from the . The to remove from the . The parameter was not found in the object. The is read-only.-or-The has a fixed size. Compares two objects for equivalence, where string comparisons are case-sensitive. 2 Initializes a new instance of the class using the specified . The to use for the new . is null. Performs a case-sensitive comparison of two objects of the same type and returns a value indicating whether one is less than, equal to, or greater than the other. A signed integer that indicates the relative values of and , as shown in the following table.Value Meaning Less than zero is less than . Zero equals . Greater than zero is greater than . The first object to compare. The second object to compare. Neither nor implements the interface.-or- and are of different types and neither one can handle comparisons with the other. 2 Represents an instance of that is associated with the of the current thread. This field is read-only. 1 Represents an instance of that is associated with . This field is read-only. 1 Provides the abstract base class for a strongly typed collection of key/value pairs. 2 Initializes a new instance of the class. Clears the contents of the instance. 2 Copies the elements to a one-dimensional at the specified index. The one-dimensional that is the destination of the objects copied from the instance. The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of elements contained in the instance. The number of elements contained in the instance. 2 Gets the list of elements contained in the instance. An representing the instance itself. Returns an that iterates through the instance. An for the instance. 2 Gets the list of elements contained in the instance. A representing the instance itself. Performs additional custom processes before clearing the contents of the instance. Performs additional custom processes after clearing the contents of the instance. Gets the element with the specified key and value in the instance. An containing the element with the specified key and value. The key of the element to get. The current value of the element associated with . Performs additional custom processes before inserting a new element into the instance. The key of the element to insert. The value of the element to insert. Performs additional custom processes after inserting a new element into the instance. The key of the element to insert. The value of the element to insert. Performs additional custom processes before removing an element from the instance. The key of the element to remove. The value of the element to remove. Performs additional custom processes after removing an element from the instance. The key of the element to remove. The value of the element to remove. Performs additional custom processes before setting a value in the instance. The key of the element to locate. The old value of the element associated with . The new value of the element associated with . Performs additional custom processes after setting a value in the instance. The key of the element to locate. The old value of the element associated with . The new value of the element associated with . Performs additional custom processes when validating the element with the specified key and value. The key of the element to validate. The value of the element to validate. Gets a value indicating whether access to a object is synchronized (thread safe). true if access to the object is synchronized (thread safe); otherwise, false. The default is false. Gets an object that can be used to synchronize access to a object. An object that can be used to synchronize access to the object. Adds an element with the specified key and value into the . 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 . The is read-only.-or- The has a fixed size. Determines whether the contains a specific key. true if the contains an element with the specified key; otherwise, false. The key to locate in the . is null. Gets a value indicating whether a object has a fixed size. true if the object has a fixed size; otherwise, false. The default is false. Gets a value indicating whether a object is read-only. true if the object is read-only; otherwise, false. The default is false. Gets or sets the value associated with the specified key. The value associated with the specified key. If the specified key is not found, attempting to get it returns null, and attempting to set it creates a new element using the specified key. The key whose value to get or set. is null. The property is set and the is read-only.-or- The property is set, does not exist in the collection, and the has a fixed size. Gets an object containing the keys in the object. An object containing the keys in the object. Removes the element with the specified key from the . The key of the element to remove. is null. The is read-only.-or- The has a fixed size. Gets an object containing the values in the object. An object containing the values in the object. Returns an that iterates through the . An for the . Represents a collection of key/value pairs that are organized based on the hash code of the key.To browse the .NET Framework source code for this type, see the Reference Source. 1 Initializes a new, empty instance of the class using the default initial capacity, load factor, hash code provider, and comparer. Initializes a new instance of the class by copying the elements from the specified dictionary to the new object. The new object has an initial capacity equal to the number of elements copied, and uses the default load factor, hash code provider, and comparer. The object to copy to a new object. is null. Initializes a new instance of the class by copying the elements from the specified dictionary to a new object. The new object has an initial capacity equal to the number of elements copied, and uses the default load factor and the specified object. The object to copy to a new object. The object that defines the hash code provider and the comparer to use with the .-or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of and the default comparer is each key's implementation of . is null. Initializes a new instance of the class by copying the elements from the specified dictionary to the new object. The new object has an initial capacity equal to the number of elements copied, and uses the specified load factor, and the default hash code provider and comparer. The object to copy to a new object. A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets. is null. is less than 0.1.-or- is greater than 1.0. Initializes a new instance of the class by copying the elements from the specified dictionary to the new object. The new object has an initial capacity equal to the number of elements copied, and uses the specified load factor and object. The object to copy to a new object. A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets. The object that defines the hash code provider and the comparer to use with the .-or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of and the default comparer is each key's implementation of . is null. is less than 0.1.-or- is greater than 1.0. Initializes a new, empty instance of the class using the default initial capacity and load factor, and the specified object. The object that defines the hash code provider and the comparer to use with the object.-or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of and the default comparer is each key's implementation of . Initializes a new, empty instance of the class using the specified initial capacity, and the default load factor, hash code provider, and comparer. The approximate number of elements that the object can initially contain. is less than zero. Initializes a new, empty instance of the class using the specified initial capacity and , and the default load factor. The approximate number of elements that the object can initially contain. The object that defines the hash code provider and the comparer to use with the .-or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of and the default comparer is each key's implementation of . is less than zero. Initializes a new, empty instance of the class using the specified initial capacity and load factor, and the default hash code provider and comparer. The approximate number of elements that the object can initially contain. A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets. is less than zero.-or- is less than 0.1.-or- is greater than 1.0. is causing an overflow. Initializes a new, empty instance of the class using the specified initial capacity, load factor, and object. The approximate number of elements that the object can initially contain. A number in the range from 0.1 through 1.0 that is multiplied by the default value which provides the best performance. The result is the maximum ratio of elements to buckets. The object that defines the hash code provider and the comparer to use with the .-or- null to use the default hash code provider and the default comparer. The default hash code provider is each key's implementation of and the default comparer is each key's implementation of . is less than zero.-or- is less than 0.1.-or- is greater than 1.0. Adds an element with the specified key and value into the . The key of the element to add. The value of the element to add. The value can be null. is null. An element with the same key already exists in the . The is read-only.-or- The has a fixed size. 1 Removes all elements from the . The is read-only. 1 Creates a shallow copy of the . A shallow copy of the . 1 Determines whether the contains a specific key. true if the contains an element with the specified key; otherwise, false. The key to locate in the . is null. 1 Determines whether the contains a specific key. true if the contains an element with the specified key; otherwise, false. The key to locate in the . is null. 1 Determines whether the contains a specific value. true if the contains an element with the specified ; otherwise, false. The value to locate in the . The value can be null. 1 Copies the elements to a one-dimensional instance at the specified index. The one-dimensional that is the destination of the objects copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of key/value pairs contained in the . The number of key/value pairs contained in the . 1 Gets the to use for the . The to use for the . The property is set to a value, but the hash table was created using an and an . Returns an that iterates through the . An for the . 2 Returns the hash code for the specified key. The hash code for . The for which a hash code is to be returned. is null. Gets a value indicating whether the has a fixed size. true if the has a fixed size; otherwise, false. The default is false. 2 Gets a value indicating whether the is read-only. true if the is read-only; otherwise, false. The default is false. 2 Gets a value indicating whether access to the is synchronized (thread safe). true if access to the is synchronized (thread safe); otherwise, false. The default is false. 2 Gets or sets the value associated with the specified key. The value associated with the specified key. If the specified key is not found, attempting to get it returns null, and attempting to set it creates a new element using the specified key. The key whose value to get or set. is null. The property is set and the is read-only.-or- The property is set, does not exist in the collection, and the has a fixed size. 2 Compares a specific with a specific key in the . true if and are equal; otherwise, false. The to compare with . The key in the to compare with . is null.-or- is null. Gets an containing the keys in the . An containing the keys in the . 1 Removes the element with the specified key from the . The key of the element to remove. is null. The is read-only.-or- The has a fixed size. 1 Returns a synchronized (thread-safe) wrapper for the . A synchronized (thread-safe) wrapper for the . The to synchronize. is null. 1 Gets an object that can be used to synchronize access to the . An object that can be used to synchronize access to the . 2 Returns an enumerator that iterates through a collection. An that can be used to iterate through the collection. Gets an containing the values in the . An containing the values in the . 1 Represents a first-in, first-out collection of objects. 1 Initializes a new instance of the class that is empty, has the default initial capacity, and uses the default growth factor. Initializes a new instance of the class that contains elements copied from the specified collection, has the same initial capacity as the number of elements copied, and uses the default growth factor. The to copy elements from. is null. Initializes a new instance of the class that is empty, has the specified initial capacity, and uses the default growth factor. The initial number of elements that the can contain. is less than zero. Initializes a new instance of the class that is empty, has the specified initial capacity, and uses the specified growth factor. The initial number of elements that the can contain. The factor by which the capacity of the is expanded. is less than zero.-or- is less than 1.0 or greater than 10.0. Removes all objects from the . 2 Creates a shallow copy of the . A shallow copy of the . 2 Determines whether an element is in the . true if is found in the ; otherwise, false. The to locate in the . The value can be null. 2 Copies the elements to an existing one-dimensional , starting at the specified array index. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of elements contained in the . The number of elements contained in the . 2 Removes and returns the object at the beginning of the . The object that is removed from the beginning of the . The is empty. 2 Adds an object to the end of the . The object to add to the . The value can be null. 2 Returns an enumerator that iterates through the . An for the . 2 Gets a value indicating whether access to the is synchronized (thread safe). true if access to the is synchronized (thread safe); otherwise, false. The default is false. 2 Returns the object at the beginning of the without removing it. The object at the beginning of the . The is empty. 2 Returns a new that wraps the original queue, and is thread safe. A wrapper that is synchronized (thread safe). The to synchronize. is null. 2 Gets an object that can be used to synchronize access to the . An object that can be used to synchronize access to the . 2 Copies the elements to a new array. A new array containing elements copied from the . 2 Sets the capacity to the actual number of elements in the . The is read-only. 2 Provides the abstract base class for a strongly typed non-generic read-only collection. 2 Initializes a new instance of the class. Gets the number of elements contained in the instance. The number of elements contained in the instance.Retrieving the value of this property is an O(1) operation. 2 Returns an enumerator that iterates through the instance. An for the instance. 2 Gets the list of elements contained in the instance. An representing the instance itself. Copies the entire to a compatible one-dimensional , starting at the specified index of the target array. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . Gets a value indicating whether access to a object is synchronized (thread safe). true if access to the object is synchronized (thread safe); otherwise, false. The default is false. Gets an object that can be used to synchronize access to a object. An object that can be used to synchronize access to the object. Represents a collection of key/value pairs that are sorted by the keys and are accessible by key and by index. 1 Initializes a new instance of the class that is empty, has the default initial capacity, and is sorted according to the interface implemented by each key added to the object. Initializes a new instance of the class that is empty, has the default initial capacity, and is sorted according to the specified interface. The implementation to use when comparing keys.-or- null to use the implementation of each key. Initializes a new instance of the class that is empty, has the specified initial capacity, and is sorted according to the specified interface. The implementation to use when comparing keys.-or- null to use the implementation of each key. The initial number of elements that the object can contain. is less than zero. There is not enough available memory to create a object with the specified . Initializes a new instance of the class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the interface implemented by each key. The implementation to copy to a new object. is null. One or more elements in do not implement the interface. Initializes a new instance of the class that contains elements copied from the specified dictionary, has the same initial capacity as the number of elements copied, and is sorted according to the specified interface. The implementation to copy to a new object. The implementation to use when comparing keys.-or- null to use the implementation of each key. is null. is null, and one or more elements in do not implement the interface. Initializes a new instance of the class that is empty, has the specified initial capacity, and is sorted according to the interface implemented by each key added to the object. The initial number of elements that the object can contain. is less than zero. There is not enough available memory to create a object with the specified . Adds an element with the specified key and value to a object. The key of the element to add. The value of the element to add. The value can be null. is null. An element with the specified already exists in the object.-or- The is set to use the interface, and does not implement the interface. The is read-only.-or- The has a fixed size. There is not enough available memory to add the element to the . The comparer throws an exception. 2 Gets or sets the capacity of a object. The number of elements that the object can contain. The value assigned is less than the current number of elements in the object. There is not enough memory available on the system. 2 Removes all elements from a object. The object is read-only.-or- The has a fixed size. 1 Creates a shallow copy of a object. A shallow copy of the object. 2 Determines whether a object contains a specific key. true if the object contains an element with the specified ; otherwise, false. The key to locate in the object. is null. The comparer throws an exception. 1 Determines whether a object contains a specific key. true if the object contains an element with the specified ; otherwise, false. The key to locate in the object. is null. The comparer throws an exception. 1 Determines whether a object contains a specific value. true if the object contains an element with the specified ; otherwise, false. The value to locate in the object. The value can be null. 2 Copies elements to a one-dimensional object, starting at the specified index in the array. The one-dimensional object that is the destination of the objects copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source object is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of elements contained in a object. The number of elements contained in the object. 1 Gets the value at the specified index of a object. The value at the specified index of the object. The zero-based index of the value to get. is outside the range of valid indexes for the object. 2 Returns an object that iterates through a object. An object for the object. 2 Gets the key at the specified index of a object. The key at the specified index of the object. The zero-based index of the key to get. is outside the range of valid indexes for the object. 2 Gets the keys in a object. An object containing the keys in the object. 2 Gets the values in a object. An object containing the values in the object. 2 Returns the zero-based index of the specified key in a object. The zero-based index of the parameter, if is found in the object; otherwise, -1. The key to locate in the object. is null. The comparer throws an exception. 1 Returns the zero-based index of the first occurrence of the specified value in a object. The zero-based index of the first occurrence of the parameter, if is found in the object; otherwise, -1. The value to locate in the object. The value can be null. 1 Gets a value indicating whether a object has a fixed size. true if the object has a fixed size; otherwise, false. The default is false. 2 Gets a value indicating whether a object is read-only. true if the object is read-only; otherwise, false. The default is false. 2 Gets a value indicating whether access to a object is synchronized (thread safe). true if access to the object is synchronized (thread safe); otherwise, false. The default is false. 2 Gets and sets the value associated with a specific key in a object. The value associated with the parameter in the object, if is found; otherwise, null. The key associated with the value to get or set. is null. The property is set and the object is read-only.-or- The property is set, does not exist in the collection, and the has a fixed size. There is not enough available memory to add the element to the . The comparer throws an exception. 1 Gets the keys in a object. An object containing the keys in the object. 1 Removes the element with the specified key from a object. The key of the element to remove. is null. The object is read-only.-or- The has a fixed size. 1 Removes the element at the specified index of a object. The zero-based index of the element to remove. is outside the range of valid indexes for the object. The is read-only.-or- The has a fixed size. 2 Replaces the value at a specific index in a object. The zero-based index at which to save . The to save into the object. The value can be null. is outside the range of valid indexes for the object. 2 Returns a synchronized (thread-safe) wrapper for a object. A synchronized (thread-safe) wrapper for the object. The object to synchronize. is null. 1 Gets an object that can be used to synchronize access to a object. An object that can be used to synchronize access to the object. 2 Returns an that iterates through the . An for the . Sets the capacity to the actual number of elements in a object. The object is read-only.-or- The has a fixed size. 2 Gets the values in a object. An object containing the values in the object. 1 Represents a simple last-in-first-out (LIFO) non-generic collection of objects. 1 Initializes a new instance of the class that is empty and has the default initial capacity. Initializes a new instance of the class that contains elements copied from the specified collection and has the same initial capacity as the number of elements copied. The to copy elements from. is null. Initializes a new instance of the class that is empty and has the specified initial capacity or the default initial capacity, whichever is greater. The initial number of elements that the can contain. is less than zero. Removes all objects from the . 2 Creates a shallow copy of the . A shallow copy of the . 2 Determines whether an element is in the . true, if is found in the ; otherwise, false. The to locate in the . The value can be null. 2 Copies the to an existing one-dimensional , starting at the specified array index. The one-dimensional that is the destination of the elements copied from . The must have zero-based indexing. The zero-based index in at which copying begins. is null. is less than zero. is multidimensional.-or- The number of elements in the source is greater than the available space from to the end of the destination . The type of the source cannot be cast automatically to the type of the destination . 2 Gets the number of elements contained in the . The number of elements contained in the . 2 Returns an for the . An for the . 2 Gets a value indicating whether access to the is synchronized (thread safe). true, if access to the is synchronized (thread safe); otherwise, false. The default is false. 2 Returns the object at the top of the without removing it. The at the top of the . The is empty. 2 Removes and returns the object at the top of the . The removed from the top of the . The is empty. 2 Inserts an object at the top of the . The to push onto the . The value can be null. 2 Returns a synchronized (thread safe) wrapper for the . A synchronized wrapper around the . The to synchronize. is null. 2 Gets an object that can be used to synchronize access to the . An that can be used to synchronize access to the . 2 Copies the to a new array. A new array containing copies of the elements of the . 2 Creates collections that ignore the case in strings. Initializes a new instance of the class. Creates a new case-insensitive instance of the class with the default initial capacity. A new case-insensitive instance of the class with the default initial capacity. Copies the entries from the specified dictionary to a new case-insensitive instance of the class with the same initial capacity as the number of entries copied. A new case-insensitive instance of the class containing the entries from the specified . The to copy to a new case-insensitive . is null. Creates a new case-insensitive instance of the class with the specified initial capacity. A new case-insensitive instance of the class with the specified initial capacity. The approximate number of entries that the can initially contain. is less than zero. Creates a new instance of the class that ignores the case of strings. A new instance of the class that ignores the case of strings.