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 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.Quotations Namespace (F#)