FSharpValue (FSharp.Core)
Reads all the fields from a value built using an instance of an F# exception declaration
Reads all the fields from a value built using an instance of an F# exception declaration
-
exn
:
obj -
The exception instance.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
Reads a field from a record value.
Reads a field from a record value.
-
record
:
obj -
The record object.
-
info
:
PropertyInfo -
The PropertyInfo describing the field to read.
-
Returns:
objnull -
The field from the record.
Reads all the fields from a record value.
Reads all the fields from a record value.
-
record
:
obj -
The record object.
-
?bindingFlags
:
BindingFlags -
Optional binding flags for the record.
Reads a field from a tuple value.
Reads a field from a tuple value.
-
Returns:
objnull -
The value of the field.
Reads all fields from a tuple.
Reads all fields from a tuple.
-
tuple
:
obj -
The input tuple.
Identify the union case and its fields for an object
Identify the union case and its fields for an object
-
value
:
objnull -
The input union case.
-
unionType
:
Type -
The union type containing the value.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
-
Returns:
UnionCaseInfo * objnull array -
The description of the union case and its fields.
Builds a typed function from object from a dynamic function implementation
Builds a typed function from object from a dynamic function implementation
-
functionType
:
Type -
The function type of the implementation.
-
implementation
:
objnull -> objnull -
The untyped lambda of the function implementation.
-
Returns:
obj -
A typed function from the given dynamic implementation.
Creates an instance of a record type.
Creates an instance of a record type.
-
recordType
:
Type -
The type of record to make.
-
values
:
objnull array -
The array of values to initialize the record.
-
?bindingFlags
:
BindingFlags -
Optional binding flags for the record.
-
Returns:
obj -
The created record.
Creates an instance of a tuple type
Creates an instance of a tuple type
-
Returns:
obj -
An instance of the tuple type with the given elements.
Create a union case value.
Create a union case value.
-
unionCase
:
UnionCaseInfo -
The description of the union case to create.
-
args
:
objnull array -
The array of arguments to construct the given case.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
-
Returns:
objnull -
The constructed union case.
Precompute a function for constructing a record value.
Precompute a function for constructing a record value.
-
recordType
:
Type -
The type of record to construct.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
Get a ConstructorInfo for a record type
Get a ConstructorInfo for a record type
-
recordType
:
Type -
The record type.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
-
Returns:
ConstructorInfo -
A ConstructorInfo for the given record type.
Precompute a function for reading a particular field from a record.
Assumes the given type is a RecordType with a field of the given name.
If not, ArgumentException is raised during pre-computation.
Precompute a function for reading a particular field from a record. Assumes the given type is a RecordType with a field of the given name. If not, ArgumentException is raised during pre-computation.
-
info
:
PropertyInfo -
The PropertyInfo of the field to read.
Precompute 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.
Precompute 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.
-
recordType
:
Type -
The type of record to read.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
Precompute a function for reading the values of a particular tuple type
Precompute a function for reading the values of a particular tuple type
-
tupleType
:
Type -
The type of tuple to read.
Gets a method that constructs objects of the given tuple type.
For small tuples, no additional type will be returned.
Gets a method that constructs objects of the given tuple type. For small tuples, no additional type will be returned.
-
tupleType
:
Type -
The input tuple type.
-
Returns:
ConstructorInfo * Type option -
The description of the tuple type constructor and an optional extra type for large tuples.
Gets information that indicates how to read a field of a tuple
Gets information that indicates how to read a field of a tuple
-
Returns:
PropertyInfo * (Type * int) option -
The description of the tuple element and an optional type and index if the tuple is big.
Precompute a function for reading the values of a particular tuple type
Precompute a function for reading the values of a particular tuple type
-
tupleType
:
Type -
The tuple type to read.
Precompute a function for constructing a discriminated union value for a particular union case.
Precompute a function for constructing a discriminated union value for a particular union case.
-
unionCase
:
UnionCaseInfo -
The description of the union case.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
A method that constructs objects of the given case
A method that constructs objects of the given case
-
unionCase
:
UnionCaseInfo -
The description of the union case.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
-
Returns:
MethodInfo -
The description of the constructor of the given union case.
Precompute a function for reading all the fields for a particular discriminator case of a union type
Precompute a function for reading all the fields for a particular discriminator case of a union type
-
unionCase
:
UnionCaseInfo -
The description of the union case to read.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
Precompute a property or static method for reading an integer representing the case tag of a union type.
Precompute a property or static method for reading an integer representing the case tag of a union type.
-
unionType
:
Type -
The type of union to read.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.
-
Returns:
MemberInfo -
The description of the union case reader.
Assumes the given type is a union type.
If not, ArgumentException is raised during pre-computation.
Assumes the given type is a union type. If not, ArgumentException is raised during pre-computation.
-
unionType
:
Type -
The type of union to optimize reading.
-
?bindingFlags
:
BindingFlags -
Optional binding flags.