EnumTEnumGetDefinedOrNull(StringSegment) Method
Returns the TEnum value associated with value if it is defined in TEnum;
otherwise, returns . The search is case-sensitive.
Namespace: KGySoft.CoreLibrariesAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
public static TEnum? GetDefinedOrNull(
StringSegment value
)
Public Shared Function GetDefinedOrNull (
value As StringSegment
) As TEnum?
public:
static Nullable<TEnum> GetDefinedOrNull(
StringSegment value
)
static member GetDefinedOrNull :
value : StringSegment -> Nullable<'TEnum>
- value StringSegment
- A StringSegment value representing a field name in the enumeration.
NullableTEnumThe
TEnum value associated with
value if it is defined in
TEnum;
otherwise,
.