FSharpType Type
Contains operations associated with constructing and analyzing F# types such as records, unions and tuples
Static members
Static member |
Description
|
||
Full Usage:
FSharpType.GetExceptionFields(exceptionType, ?bindingFlags)
Parameters:
Type
-
The exception type to read.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: PropertyInfo array
An array containing the PropertyInfo of each field in the exception.
|
Reads all the fields from an F# exception declaration, in declaration order
Assumes
|
||
|
|||
Full Usage:
FSharpType.GetRecordFields(recordType, ?bindingFlags)
Parameters:
Type
-
The input record type.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: PropertyInfo array
An array of descriptions of the properties of the record type.
|
Reads all the fields from a record value, in declaration order Assumes the given input is a record value. If not, ArgumentException is raised.
|
||
|
|||
Full Usage:
FSharpType.GetUnionCases(unionType, ?bindingFlags)
Parameters:
Type
-
The input union type.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: UnionCaseInfo array
An array of descriptions of the cases of the given union type.
|
Gets the cases of a union type. Assumes the given type is a union type. If not, ArgumentException is raised during pre-computation.
|
||
Full Usage:
FSharpType.IsExceptionRepresentation(exceptionType, ?bindingFlags)
Parameters:
Type
-
The type to check.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: bool
True if the type check is an F# exception.
|
Returns true if the
|
||
|
|||
|
|||
Full Usage:
FSharpType.IsRecord(typ, ?bindingFlags)
Parameters:
Type
-
The type to check.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: bool
True if the type check succeeds.
|
Return true if the
|
||
|
|||
Full Usage:
FSharpType.IsUnion(typ, ?bindingFlags)
Parameters:
Type
-
The type to check.
?bindingFlags : BindingFlags
-
Optional binding flags.
Returns: bool
True if the type check succeeds.
|
Returns true if the
|
||
|
|||
|
|||
|
|||
|
|||
|