Reflection.FSharpValue 类 (F#)
包含构造和分析与 F# 类型(如记录、联合和元组)关联的值时涉及到的操作。
命名空间/模块路径: Microsoft.FSharp.Reflection
程序集:FSharp.Core(在 FSharp.Core.dll 中)
[<AbstractClass>]
[<Sealed>]
type FSharpValue =
class
static member GetExceptionFields : obj * ?BindingFlags -> obj []
static member GetRecordField : obj * PropertyInfo -> obj
static member GetRecordFields : obj * ?BindingFlags -> obj []
static member GetTupleField : obj * int -> obj
static member GetTupleFields : obj -> obj []
static member GetUnionFields : obj * Type * ?BindingFlags -> UnionCaseInfo * obj []
static member MakeFunction : Type * (obj -> obj) -> obj
static member MakeRecord : Type * obj [] * ?BindingFlags -> obj
static member MakeTuple : obj [] * Type -> obj
static member MakeUnion : UnionCaseInfo * obj [] * ?BindingFlags -> obj
static member PreComputeRecordConstructor : Type * ?BindingFlags -> obj [] -> obj
static member PreComputeRecordConstructorInfo : Type * ?BindingFlags -> ConstructorInfo
static member PreComputeRecordFieldReader : PropertyInfo -> obj -> obj
static member PreComputeRecordReader : Type * ?BindingFlags -> obj -> obj []
static member PreComputeTupleConstructor : Type -> obj [] -> obj
static member PreComputeTupleConstructorInfo : Type -> ConstructorInfo * Type option
static member PreComputeTuplePropertyInfo : Type * int -> PropertyInfo * Type * int option
static member PreComputeTupleReader : Type -> obj -> obj []
static member PreComputeUnionConstructor : UnionCaseInfo * ?BindingFlags -> obj [] -> obj
static member PreComputeUnionConstructorInfo : UnionCaseInfo * ?BindingFlags -> MethodInfo
static member PreComputeUnionReader : UnionCaseInfo * ?BindingFlags -> obj -> obj []
static member PreComputeUnionTagMemberInfo : Type * ?BindingFlags -> MemberInfo
static member PreComputeUnionTagReader : Type * ?BindingFlags -> obj -> int
end
静态成员
成员 |
说明 |
---|---|
读取用 F# 异常声明的实例生成的值的所有字段。 |
|
读取记录值的某个字段。 |
|
读取记录值的所有字段。 |
|
读取元组值的某个字段。 |
|
读取元组中的所有字段。 |
|
标识对象的联合用例及其字段。 |
|
根据动态函数实现中的对象创建类型化函数。 |
|
创建记录类型的实例。 |
|
创建元组类型的实例。 |
|
创建联合用例值。 |
|
预先计算用于构造记录值的函数。 |
|
为记录类型获取一个 ConstructorInfo。 |
|
预先计算函数以读取记录的特定字段。 |
|
预先计算用于读取记录中的所有字段的函数。 这些字段的返回顺序与调用此类型的 Microsoft.FSharp.Reflection.Type.GetInfo 后报告的字段顺序相同。 |
|
预先计算用于读取特定元组类型的值的函数。 |
|
获取用于构造给定元组类型的对象的方法。 对于小元组,将不返回任何附加类型。 |
|
获取指示如何读取元组的字段的信息。 |
|
预先计算用于读取特定元组类型的值的函数。 |
|
预先计算用于构造特定联合用例的可区分联合值的函数。 |
|
用于构造给定用例的对象的方法。 |
|
预先计算用于读取联合类型的特定鉴别器用例的所有字段的函数。 |
|
预先计算一个属性或静态方法,以便读取表示联合类型的用例标记的整数。 |
|
排列读取联合类型的标记的函数。 |
平台
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