匿名值的字典,我创建的LINQ查询结果的字典从计算器问题,建议回答:A dictionary where value is an anonymous type in C#如何检索从缓存在asp.net
var intToAnon = sourceSequence.ToDictionary(
e => e.Id,
e => new { e.Column, e.Localized });
我加入这个新对象变成我的ASP.NET缓存。我如何从缓存中读取它(HttpContext.Current.Cache.Add
)?我想我需要反思,但不知道如何去做。
任何想法?
感谢
[访问C#匿名类型对象]的可能重复(http://stackoverflow.com/questions/713521/accessing-c-sharp-anonymous-type-objects) – nawfal 2014-06-28 08:56:01