Bagikan melalui


Core.CompilationRepresentationFlags Enumeration (F#)

Indicates one or more adjustments to the compiled representation of an F# type or member.

Namespace/Module Path: Microsoft.FSharp.Core

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

[<Flags>]
type CompilationRepresentationFlags =
 | None = 0
 | Static = 1
 | Instance = 2
 | ModuleSuffix = 4
 | UseNullAsTrueValue = 8
 | Event

Remarks

The following table shows the possible values and their meaning.

Value

Description

None

No special compilation representation.

Static

Compile an instance member as static.

Instance

Compile a member as instance even if null is used as a representation for this type.

ModuleSuffix

Append Module to the end of a module whose name clashes with a type name in the same namespace.

UseNullAsTrueValue

Permit the use of null as a representation for nullary discriminators in a discriminated union.

Event

Compile a property as a Common Language Infrastructure (CLI) event.

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

See Also

Reference

Microsoft.FSharp.Core Namespace (F#)