Question
A dictionary where value is an anonymous type in C#
Is it possible in C# to create a System.Collections.Generic.Dictionary<TKey, TValue>
where TKey
is unconditioned class and TValue
- an anonymous class with a number of properties, for example - database column name and it's localized name.
Something like this:
new { ID = 1, Name = new { Column = "Dollar", Localized = "Доллар" } }