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

Reflection.FSharpType Class (F#)

Den Delimarsky|Last Updated: 8/18/2017
|
2 Contributors

Contains operations associated with constructing and analyzing F# types such as records, unions and tuples.

Namespace/Module Path: Microsoft.FSharp.Reflection

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

Syntax

[<AbstractClass>]
[<Sealed>]
type FSharpType =
class
static member GetExceptionFields : Type * ?BindingFlags -> PropertyInfo []
static member GetFunctionElements : Type -> Type * Type
static member GetRecordFields : Type * ?BindingFlags -> PropertyInfo []
static member GetTupleElements : Type -> Type []
static member GetUnionCases : Type * ?BindingFlags -> UnionCaseInfo []
static member IsExceptionRepresentation : Type * ?BindingFlags -> bool
static member IsFunction : Type -> bool
static member IsModule : Type -> bool
static member IsRecord : Type * ?BindingFlags -> bool
static member IsTuple : Type -> bool
static member IsUnion : Type * ?BindingFlags -> bool
static member MakeFunctionType : Type * Type -> Type
static member MakeTupleType : Type [] -> Type
end

Static Members

MemberDescription
GetExceptionFieldsReads all the fields from an F# exception declaration, in declaration order.
GetFunctionElementsGets the domain and range types from an F# function type or from the runtime type of a closure implementing an F# type.
GetRecordFieldsReads all the fields from a record value, in declaration order.
GetTupleElementsGets the tuple elements from the representation of an F# tuple type.
GetUnionCasesGets the cases of a union type.
IsExceptionRepresentationReturns true if the specified type is a representation of an F# exception declaration.
IsFunctionReturns true if the specified type is a representation of an F# function type or the runtime type of a closure implementing an F# function type.
IsModuleReturns true if the specified type is a System.Type value corresponding to the compiled form of an F# module.
IsRecordReturns true if the specified type is a representation of an F# record type.
IsTupleReturns true if the specified type is a representation of an F# tuple type.
IsUnionReturns true if the specified type is a representation of an F# union type or the runtime type of a value of that type.
MakeFunctionTypeReturns a System.Type object representing the F# function type with the given domain and range.
MakeTupleTypeReturns a System.Type representing an F# tuple type with the given element types.

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

© 2019 Microsoft