I have this following code in C#
_mapRegions = new ListDictionary();
foreach (RegionEnum region in Enum.GetValues(typeof(RegionEnum)))
_mapRegions.Add(region, Enum.GetName(typeof(RegionEnum), region));
and in
VB I tried
_mapRegions = New ListDictionary()
Dim region As RegionEnum = Nothing
For Each region In System.Enum.GetValues(Type.GetType("RegionEnum"))
_mapRegions.Add(region, System.Enum.GetName(Type.GetType("RegionEnum"), region))
Next
but it throws an error, that the value cannot be null O.o ?
~Imagination is more important than knowledge~