EnumTEnumGetDefinedOrNull(StringSegment) Method

Returns the TEnum value associated with value if it is defined in TEnum; otherwise, returns . The search is case-sensitive.

Definition

Namespace: KGySoft.CoreLibraries
Assembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 9.0.0-preview.1
C#
public static TEnum? GetDefinedOrNull(
	StringSegment value
)

Parameters

value  StringSegment
A StringSegment value representing a field name in the enumeration.

Return Value

NullableTEnum
The TEnum value associated with value if it is defined in TEnum; otherwise, .

Exceptions

See Also