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