FxCop 中有一个rule ConstructorsShouldNotCallBaseClassVirtualMethods 那如果在构造函数中调用Virtual方法可能会产生什么样的不良后果呢?
FxCop 中有一个rule ConstructorsShouldNotCallBaseClassVirtualMethods 那如果在构造函数中调用Virtual方法可能会产生什么样的不良后果呢?
1. 抽象类不应该拥有构造函数原文引用:Abstract types should not have constructors TypeName: AbstractTypesShouldNo
7. 集合类应该实现泛型接口原文引用:Collections should implement generic interface TypeName: CollectionsShouldIm
6. 避免使用输出参数原文引用:Avoid out parametersTypeName: AvoidOutParameters CheckId: CA1021 Categor
11. 不应该使用默认参数翻译概述:在MSDN中对于调用使用默认参数的函数的说明如下: .NET Framework 开发员指南 访问默认参数值 某些语言(如 C++ 托管扩展和 Mi
7. 集合类应该实现泛型接口原文引用:Collections should implement generic interface TypeName: CollectionsShouldIm
5. 避免命名空间中包含太少的类型原文引用:Avoid namespaces with few types TypeName: AvoidNamespacesWithFewTypes
1. 抽象类不应该拥有构造函数原文引用:Abstract types should not have constructors TypeName: AbstractTypesShouldNo
2. 程序集应该拥有一个有效的强名称原文引用:Assemblies should have valid strong names TypeName: AssembliesShouldHave