Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The F# compiler emits calls to this function to implement the use keyword for F# sequence expressions.
Namespace/Module Path: Microsoft.FSharp.Core.CompilerServices.RuntimeHelpers
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
RuntimeHelpers.EnumerateUsing : 'T -> ('T -> 'Collection) -> seq<'U> (requires 'T :> IDisposable and 'Collection :> seq<'U>)
// Usage:
RuntimeHelpers.EnumerateUsing resource source
Parameters
resource
Type: 'TThe resource to be used and disposed.
source
Type: 'T -> 'CollectionThe input sequence.
Return Value
The result sequence.
Platforms
Windows 7, Windows Vista SP2, Windows XP SP3, Windows XP x64 SP2, Windows Server 2008 R2, Windows Server 2008 SP2, Windows Server 2003 SP2
Version Information
F# Runtime
Supported in: 2.0, 4.0
Silverlight
Supported in: 3
See Also
Reference
CompilerServices.RuntimeHelpers Module (F#)