[Home] Type Microsoft.FSharp.Reflection.FSharpType


Full Type Signature

[<AbstractClassAttribute (); SealedAttribute ()>]
type FSharpType =
  class
    static member GetFunctionElements : typ:Type -> Type * Type
    static member GetRecordFields : typ:Type * ?bindingFlags:BindingFlags -> PropertyInfo []
    static member GetTupleElements : typ:Type -> Type []
    static member GetUnionCases : typ:Type * ?bindingFlags:BindingFlags -> UnionCaseInfo []
    static member IsFunction : typ:Type -> bool
    static member IsModule : typ:Type -> bool
    static member IsRecord : typ:Type * ?bindingFlags:BindingFlags -> bool
    static member IsTuple : typ:Type -> bool
    static member IsUnion : typ:Type * ?bindingFlags:BindingFlags -> bool
    static member MakeFunctionType : domain:Type * range:Type -> Type
    static member MakeTupleType : typ:Type [] -> Type
  end

Static Members

MemberDescription
member GetFunctionElements : typ:Type -> Type * Type
Get the domain and range types from an F# function type or from the runtime type of a closure implementing an F# type
member
  GetRecordFields : typ:Type * ?bindingFlags:BindingFlags -> PropertyInfo []
Read all the fields from a record value, in declaration order Assumes the given input is a record value. If not, ArgumentException is raised.
member GetTupleElements : typ:Type -> Type []
Get the tuple elements from the representation of an F# tuple type
member GetUnionCases : typ:Type * ?bindingFlags:BindingFlags -> UnionCaseInfo []
Get the cases of a union type. Assumes the given type is a union type. If not, ArgumentException is raised during pre-computation.
member IsFunction : typ:Type -> bool
Return true if the typ is a representation of an F# function type or the runtime type of a closure implementing an F# type
member IsModule : typ:Type -> bool
Return true if the typ is a System.Type value corresponding to the compiled form of an F# module
member IsRecord : typ:Type * ?bindingFlags:BindingFlags -> bool
Return true if the typ is a representation of an F# record type
member IsTuple : typ:Type -> bool
Return true if the typ is a representation of an F# tuple type
member IsUnion : typ:Type * ?bindingFlags:BindingFlags -> bool
Return true if the typ is a representation of an F# union type or the runtime type of a value of that type
member MakeFunctionType : domain:Type * range:Type -> Type
Return a System.Type representing the F# function type with the given domain and range
member MakeTupleType : typ:Type [] -> Type
Return a System.Type representing an F# tuple type with the given element types

See Also

Microsoft.FSharp.Reflection


Documentation for assembly FSharp.Core, version 1.9.6.0, generated using F# Programming Language version 1.9.6.0