Closed kurnakovv closed 1 year ago
Convert enum to another enum or default value of another enum type if not possible.
TAnotherEnum ToAnotherOrDefault(this Enum, bool [default = true]) where TAnotherEnum : struct
Analogy of TryToAnother, but without out parameter and boolean variable
Description
Convert enum to another enum or default value of another enum type if not possible.
Method signature
TAnotherEnum ToAnotherOrDefault(this Enum, bool [default = true]) where TAnotherEnum : struct
Goal
Analogy of TryToAnother, but without out parameter and boolean variable