EnumerationExtensions Type

Extends the operations for Flag Enumerations with setting and clearing of individual flags.

Static members

Static member Description

EnumerationExtensions.Is(type, value)

Full Usage: EnumerationExtensions.Is(type, value)

Parameters:
    type : Enum
    value : 'T

Returns: bool

type : Enum
value : 'T
Returns: bool

EnumerationExtensions.WithClearedFlag(type, value)

Full Usage: EnumerationExtensions.WithClearedFlag(type, value)

Parameters:
    type : Enum
    value : 'T

Returns: 'T

type : Enum
value : 'T
Returns: 'T

EnumerationExtensions.WithFlag(type, flag, value)

Full Usage: EnumerationExtensions.WithFlag(type, flag, value)

Parameters:
    type : Enum
    flag : 'T
    value : bool

Returns: 'T

type : Enum
flag : 'T
value : bool
Returns: 'T

EnumerationExtensions.WithSetFlag(type, value)

Full Usage: EnumerationExtensions.WithSetFlag(type, value)

Parameters:
    type : Enum
    value : 'T

Returns: 'T

type : Enum
value : 'T
Returns: 'T