Share via


Quotations.Var Class (F#)

Represents information at the binding site of a variable.

Namespace/Module Path: Microsoft.FSharp.Quotations

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

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

Member

Description

new

Creates a new variable with the given name, type and mutability

Instance Members

Member

Description

IsMutable

Indicates if the variable represents a mutable storage location

Name

The declared name of the variable

Type

The type associated with the variable

Static Members

Member

Description

Global

Fetches 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

Reference

Microsoft.FSharp.Quotations Namespace (F#)