-
Notifications
You must be signed in to change notification settings - Fork 35
M_CodeJam_EnumHelper_GetNameValues__1
Andrew Koryavchenko edited this page Jun 17, 2018
·
5 revisions
Returns a dictionary containing the enum names and their values.
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0
C#
public static IReadOnlyDictionary<string, TEnum> GetNameValues<TEnum>(
bool ignoreCase = false
)
where TEnum : struct, new()
VB
Public Shared Function GetNameValues(Of TEnum As {Structure, New}) (
Optional ignoreCase As Boolean = false
) As IReadOnlyDictionary(Of String, TEnum)
F#
static member GetNameValues :
?ignoreCase : bool
(* Defaults:
let _ignoreCase = defaultArg ignoreCase false
*)
-> IReadOnlyDictionary<string, 'TEnum> when 'TEnum : struct, new()
- ignoreCase (Optional)
- Type: System.Boolean
If set totrue
the case of the name will be ignored.
- TEnum
- The type of the enum.
Type: IReadOnlyDictionary(String, TEnum)
Returns a dictionary containing the enum names and their values.