Table of contents
TOC
Collapse the table of content
Expand the table of content

Quotations.Var Class (F#)

Den Delimarsky|Last Updated: 7/25/2016
|
1 Contributor

Represents information at the binding site of a variable.

Namespace/Module Path: Microsoft.FSharp.Quotations

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

Syntax

[<Sealed>]
type Var =
class
interface IComparable
new Var : string * Type * bool option -> Var
static member Global : string * Type -> Var
member this.IsMutable :  bool
member this.Name :  string
member this.Type :  Type
end

Remarks

This type is named FSharpVar in compiled assemblies. If you are accessing the type from a language other than F#, or through reflection, use this name.

Constructors

MemberDescription
newCreates a new variable with the given name, type and mutability

Instance Members

MemberDescription
IsMutableIndicates if the variable represents a mutable storage location
NameThe declared name of the variable
TypeThe type associated with the variable

Static Members

MemberDescription
GlobalFetches or creates a new variable with the given name and type from a global pool of shared variables indexed by name and type.

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

Microsoft.FSharp.Quotations Namespace (F#)

© 2017 Microsoft