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

Reflection.FSharpValue Class (F#)

Den Delimarsky|Last Updated: 7/25/2016
|
1 Contributor

Contains operations associated with constructing and analyzing values associated with 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 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

Static Members

MemberDescription
GetExceptionFieldsReads all the fields from a value built using an instance of an F# exception declaration.
GetRecordFieldReads a field from a record value.
GetRecordFieldsReads all the fields from a record value.
GetTupleFieldReads a field from a tuple value.
GetTupleFieldsReads all fields from a tuple.
GetUnionFieldsIdentify the union case and its fields for an object.
MakeFunctionCreates a typed function from object from a dynamic function implementation.
MakeRecordCreates an instance of a record type.
MakeTupleCreates an instance of a tuple type.
MakeUnionCreate a union case value.
PreComputeRecordConstructorPrecompute a function for constructing a record value.
PreComputeRecordConstructorInfoGet a System.Reflection.ConstructorInfo for a record type.
PreComputeRecordFieldReaderPrecompute a function for reading a particular field from a record.
PreComputeRecordReaderPrecompute a function for reading all the fields from a record. The fields are returned in the same order as the fields reported by a call to Microsoft.FSharp.Reflection.Type.GetInfo for this type.
PreComputeTupleConstructorPrecomputes a function for reading the values of a particular tuple type.
PreComputeTupleConstructorInfoGets a method that constructs objects of the given tuple type. For small tuples, no additional type will be returned.
PreComputeTuplePropertyInfoGets information that indicates how to read a field of a tuple.
PreComputeTupleReaderPrecomputes a function for reading the values of a particular tuple type.
PreComputeUnionConstructorPrecomputes a function for constructing a discriminated union value for a particular union case.
PreComputeUnionConstructorInfoA method that constructs objects of the given case.
PreComputeUnionReaderPrecomputes a function for reading all the fields for a particular discriminator case of a union type.
PreComputeUnionTagMemberInfoPrecomputes a property or static method for reading an integer representing the case tag of a union type.
PreComputeUnionTagReaderPrecomputes a function that reads the tags of a union type.

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#)

© 2017 Microsoft