I have the following
private enum Properties
{ one, two, three }
private Dictionary <Properties, String> PropertyToString;
private Dictionary <String, Properies> StringToProperty;
How can I use LINQ to populate each of the dictionaries so that I can use the following? Is there a one line LINQ statement that would populate each?
Properties MyResult = StringToProperty["One"];
String MySResult = PropertyToString[Properties.One];
I specifically would like to use the actaull property to index in the second case.