FSharpx.Extras


Enum Module

Functions and values

Function or value Description

getValues ()

Full Usage: getValues ()

Parameters:
    () : unit

Returns: 't seq
() : unit
Returns: 't seq

isDefined value

Full Usage: isDefined value

Parameters:
    value : 'a

Returns: bool

From http://www.fssnip.net/4V/title/Check-if-value-is-a-valid-enum-or-flags-combination

value : 'a
Returns: bool

parse s

Full Usage: parse s

Parameters:
    s : string

Returns: 'a
s : string
Returns: 'a

toString enum

Full Usage: toString enum

Parameters:
Returns: string

Returns the name of the enum as string

enum : Enum
Returns: string

tryParse s

Full Usage: tryParse s

Parameters:
    s : string

Returns: 'a option
s : string
Returns: 'a option