Table of contents
TOC
Collapse the table of content
Expand the table of content

RuntimeHelpers.EnumerateUsing<'T,'Collection,'U> Function (F#)

Den Delimarsky|Last Updated: 8/18/2017
|
1 Contributor

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)

Syntax

// Signature:
RuntimeHelpers.EnumerateUsing : 'T -> ('T -> 'Collection) -> seq<'U> (requires 'T :> IDisposable and 'Collection :> seq<'U>)

// Usage:
RuntimeHelpers.EnumerateUsing resource source

Parameters

resource Type: 'T

The resource to be used and disposed.

source Type: 'T -> 'Collection

The input sequence.

Return Value

The result sequence.

Platforms

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

Version Information

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

See Also

CompilerServices.RuntimeHelpers Module (F#)

Microsoft.FSharp.Core.CompilerServices Namespace (F#)

© 2019 Microsoft