[FxCop.设计规则]7. 集合类应该实现泛型接口[2]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 cajon 的 blog


cause: an externally visible type implements the system.collections.ienumerable interface but does not implement the system.collections.generic.ienumerable<t> interface, and the containing assembly targets .net framework version 2.0. this rule ignores types that implement system.collections.idictionary.

rule description

to broaden the usability of a collection, implement one of the generic collection interfaces. then the collection can be used to populate generic collection types such as the following:

how to fix violations

to fix a violation of this rule, implement one of the following generic collection interfaces:

本文关键:[FxCop.设计规则]7. 集合类应该实现泛型接口
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top