Export (0) Print
Expand All

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

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.

Member

Description

new

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

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

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.

Windows 8, Windows 7, Windows Server 2012, Windows Server 2008 R2

F# Core Library Versions

Supported in: 2.0, 4.0, Portable

Show:
© 2014 Microsoft