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 = "Доллар" } }
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…