Item 39: Use Dynamic to Leverage the Runtime Type of Generic Type Parameters(Effective C#)
摘要:
Cast<T>, like all generic methods, compiles with only limited knowledgeof its type parameters. That can lead to generic methods not working theway you’d expect. The root cause is almost always that the generic methodcould not be made aware of particular functionality in the type representingth 阅读全文
posted @ 2011-02-25 23:56 Ray Z 阅读(235) 评论(0) 推荐(0) 编辑