CompilerServices.RuntimeHelpers Module (F#)

A group of functions used as part of the compiled representation of F# sequence expressions.

Namespace/Module Path: Microsoft.FSharp.Core.CompilerServices

Assembly: FSharp.Core (in FSharp.Core.dll)

module RuntimeHelpers

Values

Value

Description

CreateEvent : ('Delegate -> unit) -> ('Delegate -> unit) -> ((obj -> 'Args -> unit) -> 'Delegate) -> IEvent<'Delegate,'Args>

Creates an anonymous event with the given handlers.

EnumerateFromFunctions : (unit -> 'T) -> ('T -> bool) -> ('T -> 'U) -> seq<'U>

The F# compiler emits calls to this function to implement the compiler-intrinsic conversions from weakly typed IEnumerable sequences to typed sequences.

EnumerateThenFinally : seq<'T> -> (unit -> unit) -> seq<'T>

The F# compiler emits calls to this function to implement the try...finally construct for F# sequence expressions.

EnumerateUsing : 'T -> ('T -> 'Collection) -> seq<'U>

The F# compiler emits calls to this function to implement the use keyword for F# sequence expressions.

EnumerateWhile : (unit -> bool) -> seq<'T> -> seq<'T>

The F# compiler emits calls to this function to implement the while keyword for F# sequence expressions.

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

Reference

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