CachingEnumerableExtensions.ToCacheEnumerable Method
This element is introduced in Windows PowerShell 5.0.
Namespace: Microsoft.OneGet.Utility.Collections
Assembly: Microsoft.OneGet.Utility (in Microsoft.OneGet.Utility.dll)
Usage
'Usage
Dim collection As IEnumerable(Of T)
Dim returnValue As CacheEnumerable(Of T)
returnValue = CachingEnumerableExtensions.ToCacheEnumerable(collection)
Syntax
'Declaration
<ExtensionAttribute> _
Public Shared Function ToCacheEnumerable(Of T) ( _
collection As IEnumerable(Of T) _
) As CacheEnumerable(Of T)
[ExtensionAttribute]
public static CacheEnumerable<T> ToCacheEnumerable<T> (
IEnumerable<T> collection
)
[ExtensionAttribute]
public:
generic<typename T>
static CacheEnumerable<T>^ ToCacheEnumerable (
IEnumerable<T>^ collection
)
GenericParameters
- T
Parameters
- collection
Return Value
Returns CacheEnumerable.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Target Platforms
See Also
Reference
CachingEnumerableExtensions Class
CachingEnumerableExtensions Members
Microsoft.OneGet.Utility.Collections Namespace