OptionOfTEnum Method
Creates an instance of an Option prepresenting provided Enum value.
Namespace: Fluent.Calculations.Primitives.BaseTypesAssembly: Fluent.Calculations.Primitives (in Fluent.Calculations.Primitives.dll) Version: 1.1.0-aplha
public static Option<TEnum> Of<TEnum>(
TEnum primitiveValue,
string fieldName = "NaN"
)
where TEnum : struct, new()
- primitiveValue TEnum
- Value of the option.
- fieldName String (Optional)
- Automaically captured name of declaring property which will be used as a name of the Option.
- TEnum
- Underlying Enum type.
OptionTEnumOption value instance.