Reflection.FSharpType Class (F#)
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)
[<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
Member |
Description |
---|---|
Reads all the fields from an F# exception declaration, in declaration order. |
|
Gets the domain and range types from an F# function type or from the runtime type of a closure implementing an F# type. |
|
Reads all the fields from a record value, in declaration order. |
|
Gets the tuple elements from the representation of an F# tuple type. |
|
Gets the cases of a union type. |
|
Returns true if the specified type is a representation of an F# exception declaration. |
|
Returns 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. |
|
Returns true if the specified type is a Type value corresponding to the compiled form of an F# module. |
|
Returns true if the specified type is a representation of an F# record type. |
|
Returns true if the specified type is a representation of an F# tuple type. |
|
Returns true if the specified type is a representation of an F# union type or the runtime type of a value of that type. |
|
Returns a Type object representing the F# function type with the given domain and range. |
|
Returns a 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