Logo GenPRES

Reflection Module

Converts a union case without fields to its name and a name back to the union case. An unknown name gives None.

Nested modules

Modules Description

Tests

Holds the Unquote tests of the union case conversion to and from a string.

Functions and values

Function or value Description

Reflection.fromString s

Full Usage: Reflection.fromString s

Parameters:
    s : string

Returns: 'T option
Type parameters: 'T

Create a union case option from a string value Returns None if the string value does not match a union case

s : string
Returns: 'T option

Reflection.toString x

Full Usage: Reflection.toString x

Parameters:
    x : 'a

Returns: string
Type parameters: 'a

Turn a union case to a string value

x : 'a
Returns: string

Type something to start searching.