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
|
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. |