Algorithms..::..Untyped<(Of <(<'T>)>)> Method (ICollection<(Of <(<'T>)>)>)
Given a generic ICollection<T> interface, wrap a non-generic (untyped)
ICollection interface around it. The non-generic interface will contain the same objects as the
underlying generic collection, but can be used in places that require a non-generic interface.
This method is useful when interfacing generic interfaces with older code that uses non-generic interfaces.
Namespace:
Wintellect.PowerCollections
Assembly:
PowerCollections (in PowerCollections.dll)
Syntax
public static ICollection Untyped<T>( ICollection<T> typedCollection )
Public Shared Function Untyped(Of T) ( _ typedCollection As ICollection(Of T) _ ) As ICollection
public: generic<typename T> static ICollection^ Untyped( ICollection<T>^ typedCollection )
Type Parameters
- T
- The item type of the underlying collection.
Parameters
- typedCollection
- Type: ICollection<(Of <(<'T>)>)>
A typed collection to wrap.