EnumTEnumGetDefinedOrNull(TEnum) Method
Returns value if it is defined in TEnum; otherwise, returns .
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static TEnum? GetDefinedOrNull(
TEnum value
)
Public Shared Function GetDefinedOrNull (
value As TEnum
) As TEnum?
public:
static Nullable<TEnum> GetDefinedOrNull(
TEnum value
)
static member GetDefinedOrNull :
value : 'TEnum -> Nullable<'TEnum>
- value TEnum
- A TEnum value.
NullableTEnumvalue if it is defined in
TEnum; otherwise,
.