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.
This function implements calls to default constructors accessed by new constraints.
Namespace/Module Path: Microsoft.FSharp.Core.LanguagePrimitives.IntrinsicFunctions
Assembly: FSharp.Core (in FSharp.Core.dll)
// Signature:
CreateInstance : unit -> 'T (requires default constructor)
// Usage:
CreateInstance ()
Return Value
A new default instance of the specified type.
Remarks
This function is for use by compiled F# code and should not be used directly.
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