I'm trying to implement an example from this thread Databinding an enum property to a ComboBox in WPF but I need to translate it to VB.net. It's Martin Liversage's answer.
It's about these 2 lines:
this.valueToNameMap = this.type.GetFields(BindingFlags.Static | BindingFlags.Public).ToDictionary(fi => fi.GetValue(null), GetDescription);
this.nameToValueMap = this.valueToNameMap.ToDictionary(kvp => kvp.Value, kvp => kvp.Key);
Thanks!