[Home] Type Microsoft.FSharp.Reflection.TypeInfo


Represents the one-level decomposition of an F# type according to the various structural types of the F# language. Note: Most attributes associated with a System.Type value can be accessed via regular .NET reflection. However, it is useful to be able to view some F# type definitions from the perspective of the F# language, in particular for record, tuple and discriminated-union definitions. Although these types are ultimately compiled as .NET types, the details of the encoding used is often irrelevant, and this type and other items in this API help hide the details of this encoding.

Full Type Signature

type TypeInfo =
  | TupleType of Type list
  | FunctionType of Type * Type
  | RecordType of (string * Type) list
  | SumType of (string * (string * Type) list) list
  | DelegateType of Type list * Type
  | UnitType
  | ObjectType of Type

See Also

Microsoft.FSharp.Reflection


Documentation for assembly FSharp.Core, version 1.9.4.19, generated using F# version 1.9.4.19