A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://fsharp.github.io/fsharp-core-docs/reference/fsharp-reflection-fsharpvalue.html below:

FSharpValue (FSharp.Core) | FSharp.Core

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.

Returns: objnull array

The fields from the given exception.

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.

record : obj

The record object.

?bindingFlags : BindingFlags

Optional binding flags for the record.

Returns: objnull array

The array of fields from the record.

Reads a field from a tuple value.

tuple : obj

The input tuple.

index : int

The index of the field to read.

Returns: objnull

The value of the field.

Reads all fields from a tuple.

tuple : obj

The input tuple.

Returns: objnull array

An array of the fields from the given tuple.

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

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.

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

tupleElements : objnull array

The array of tuple fields.

tupleType : Type

The tuple type to create.

Returns: obj

An instance of the tuple type with the given elements.

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.

recordType : Type

The type of record to construct.

?bindingFlags : BindingFlags

Optional binding flags.

Returns: objnull array -> obj

A function to construct records of the given 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.

info : PropertyInfo

The PropertyInfo of the field to read.

Returns: obj -> objnull

A function to read the specified field from the record.

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.

Returns: obj -> objnull array

An optimized reader for the given record type.

Precompute a function for reading the values of a particular tuple type

tupleType : Type

The type of tuple to read.

Returns: objnull array -> obj

A function to read a particular tuple type.

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

tupleType : Type

The input tuple type.

index : int

The index of the tuple element to describe.

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

tupleType : Type

The tuple type to read.

Returns: obj -> objnull array

A function to read values of the given tuple type.

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.

Returns: objnull array -> objnull

A function for constructing values of the given union 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

unionCase : UnionCaseInfo

The description of the union case to read.

?bindingFlags : BindingFlags

Optional binding flags.

Returns: objnull -> objnull array

A function to for reading the fields of the given union case.

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.

unionType : Type

The type of union to optimize reading.

?bindingFlags : BindingFlags

Optional binding flags.

Returns: objnull -> int

An optimized function to read the tags of the given union type.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4