包含与构造和分析 F# 类型(如记录、联合和元组)关联的操作。
命名空间/模块路径: Microsoft.FSharp.Reflection
程序集:FSharp.Core(在 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
静态成员
成员 |
说明 |
---|---|
按声明顺序从 F# 异常声明中读取所有字段。 |
|
从 F# 函数类型或实现 F# 类型的闭包运行时类型获取域和范围类型。 |
|
按声明顺序从记录值中读取所有字段。 |
|
从 F# 元组类型的表示形式中获取元组元素。 |
|
获取联合类型的用例。 |
|
如果指定类型为 F# 异常声明的表示形式,则返回 true。 |
|
如果制定类型是 F# 函数类型的表示形式,或实现 F# 函数类型的闭包的运行时类型,则返回 true。 |
|
如果指定类型为与 F# 模块的已编译形式相对应的 Type 值,则返回 true |
|
如果指定类型为 F# 记录类型的表示形式,则返回 true。 |
|
如果指定类型为 F# 元组类型的表示形式,则返回 true。 |
|
如果制定类型为 F# 联合类型的表示形式,或该类型值的运行时类型,则返回 true。 |
|
返回 Type object,它表示具有给定域和范围的 F# 函数类型。 |
|
返回 Type,它表示具有给定元素类型的 F# 元组类型。 |
平台
Windows 7、Windows Vista SP2、Windows XP SP3、Windows XP x64 SP2、Windows Server 2008 R2、Windows Server 2008 SP2、Windows Server 2003 SP2
版本信息
F# 运行时
受以下版本支持:2.0、4.0
Silverlight
受以下版本支持:3