Collection<T> Class
SQL Server 2012
Provides helper methods and classes for metadata object collections.
Namespace: Microsoft.SqlServer.Management.SqlParser.MetadataProvider
Assembly: Microsoft.SqlServer.Management.SqlParser (in Microsoft.SqlServer.Management.SqlParser.dll)
The Collection<T> type exposes the following members.
| Name | Description | |
|---|---|---|
![]() ![]() | Empty | Gets a singleton, read-only, empty collection instance. |
![]() ![]() | EmptyOrdered | Gets a singleton, read-only, ordered collection instance. |
| Name | Description | |
|---|---|---|
![]() ![]() | ApplyOnFirstAccess<C> | Applies the specified action on each element of the specified collection the first time the element is accessed. |
![]() ![]() | Convert<TDerived> | Creates a wrapper collection that can be used to access elements in the specified collection by using its base type. |
![]() ![]() | CopyToArray | Creates an array that contains all the items from the specified collection. |
![]() ![]() | CreateOrderedCollection(CollationInfo, T) | Creates an IMetadataOrderedCollection<T> object that contains the specified item. |
![]() ![]() | CreateOrderedCollection(CollationInfo, T[]) | Creates an IMetadataOrderedCollection<T> object and copies all elements from the specified array. |
![]() ![]() | CreateOrderedCollection(CollationInfo, T, T) | Creates an IMetadataOrderedCollection<T> object that contains the two specified items. |
![]() ![]() | CreateOrderedCollection(CollationInfo, T[], Int32) | Creates an IMetadataOrderedCollection<T> object and copies a specified number of elements from the specified array. |
![]() ![]() | Filter | Creates a wrapper collection that filters out all the elements that do not match the conditions defined by the specified predicate. |
![]() ![]() | Merge(IMetadataCollection<T>[]) | Merges the IMetadataCollection<T> objects into one collection. |
![]() ![]() | Merge(Boolean, IMetadataCollection<T>[]) | Merges two or more collections into one collection. |
![]() ![]() | Merge(IMetadataCollection<T>, IMetadataCollection<T>) | Merges the two specified collections into one collection. |
![]() ![]() | Merge(Boolean, IMetadataCollection<T>, IMetadataCollection<T>) | Merges the two specified collections into one collection. |

