ReadOnlyDictionary<TKey,TValue>.ValueCollection Class
Definition
Represents a read-only collection of the values of a ReadOnlyDictionary<TKey,TValue> object.
public: ref class ReadOnlyDictionary<TKey, TValue>::ValueCollection sealed : System::Collections::Generic::ICollection<TValue>, System::Collections::Generic::IEnumerable<TValue>, System::Collections::Generic::IReadOnlyCollection<TValue>, System::Collections::ICollection
[System.Serializable]
public sealed class ReadOnlyDictionary<TKey,TValue>.ValueCollection : System.Collections.Generic.ICollection<TValue>, System.Collections.Generic.IEnumerable<TValue>, System.Collections.Generic.IReadOnlyCollection<TValue>, System.Collections.ICollection
type ReadOnlyDictionary<'Key, 'Value>.ValueCollection = class
interface ICollection<'Value>
interface ICollection
interface IReadOnlyCollection<'Value>
interface seq<'Value>
interface IEnumerable
Public NotInheritable Class ReadOnlyDictionary(Of TKey, TValue).ValueCollection
Implements ICollection, ICollection(Of TValue), IEnumerable(Of TValue), IReadOnlyCollection(Of TValue)
Type Parameters
- TKey
- TValue
- Inheritance
-
ReadOnlyDictionary<TKey,TValue>.ValueCollection
- Attributes
- Implements
-
ICollection<TValue> IEnumerable<T> IEnumerable<TValue> IReadOnlyCollection<TValue> ICollection IEnumerable
Properties
Count |
Gets the number of elements in the collection. |
Methods
CopyTo(TValue[], Int32) |
Copies the elements of the collection to an array, starting at a specific array index. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetEnumerator() |
Returns an enumerator that iterates through the collection. |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
Explicit Interface Implementations
ICollection.CopyTo(Array, Int32) |
Copies the elements of the collection to an array, starting at a specific array index. |
ICollection.IsSynchronized |
Gets a value that indicates whether access to the collection is synchronized (thread safe). |
ICollection.SyncRoot |
Gets an object that can be used to synchronize access to the collection. |
ICollection<TValue>.Add(TValue) |
Throws a NotSupportedException exception in all cases. |
ICollection<TValue>.Clear() |
Throws a NotSupportedException exception in all cases. |
ICollection<TValue>.Contains(TValue) |
Determines whether the collection contains a specific value. |
ICollection<TValue>.IsReadOnly |
Gets a value that indicates whether the collection is read-only. |
ICollection<TValue>.Remove(TValue) |
Throws a NotSupportedException exception in all cases. |
IEnumerable.GetEnumerator() |
Returns an enumerator that iterates through the collection. |
Extension Methods
CopyToDataTable<T>(IEnumerable<T>) |
Returns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler) |
Copies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter |
Cast<TResult>(IEnumerable) |
Casts the elements of an IEnumerable to the specified type. |
OfType<TResult>(IEnumerable) |
Filters the elements of an IEnumerable based on a specified type. |
AsParallel(IEnumerable) |
Enables parallelization of a query. |
AsQueryable(IEnumerable) |
Converts an IEnumerable to an IQueryable. |
Ancestors<T>(IEnumerable<T>) |
Returns a collection of elements that contains the ancestors of every node in the source collection. |
Ancestors<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the ancestors of every node in the source collection. Only elements that have a matching XName are included in the collection. |
DescendantNodes<T>(IEnumerable<T>) |
Returns a collection of the descendant nodes of every document and element in the source collection. |
Descendants<T>(IEnumerable<T>) |
Returns a collection of elements that contains the descendant elements of every element and document in the source collection. |
Descendants<T>(IEnumerable<T>, XName) |
Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
Elements<T>(IEnumerable<T>) |
Returns a collection of the child elements of every element and document in the source collection. |
Elements<T>(IEnumerable<T>, XName) |
Returns a filtered collection of the child elements of every element and document in the source collection. Only elements that have a matching XName are included in the collection. |
InDocumentOrder<T>(IEnumerable<T>) |
Returns a collection of nodes that contains all nodes in the source collection, sorted in document order. |
Nodes<T>(IEnumerable<T>) |
Returns a collection of the child nodes of every document and element in the source collection. |
Remove<T>(IEnumerable<T>) |
Removes every node in the source collection from its parent node. |