A class declares and implements an instance field that is a System.IDisposable type, and the class does not implement IDisposable. A class that declares an IDisposable field indirectly owns an unmanaged resource and should implement the IDisposable interface.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182172.aspx
A type contains a delegate that returns void, whose signature contains two parameters (the first an object and the second a type that is assignable to EventArgs), and the containing assembly targets Microsoft .NET Framework?2.0.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182178.aspx
The default value of an uninitialized enumeration, just as other value types, is zero. A nonflags-attributed enumeration should define a member by using the value of zero so that the default value is a valid value of the enumeration. If an enumeration that has the FlagsAttribute attribute applied defines a zero-valued member, its name should be ""None"" to indicate that no values have been set in the enumeration.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182149.aspx
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.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/ms182132.aspx
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182126.aspx
The Common Language Specification (CLS) defines naming restrictions, data types, and rules to which assemblies must conform if they will be used across programming languages. Good design dictates that all assemblies explicitly indicate CLS compliance by using CLSCompliantAttribute . If this attribute is not present on an assembly, the assembly is not compliant.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182156.aspx
The .NET Framework uses the version number to uniquely identify an assembly, and to bind to types in strongly named assemblies. The version number is used together with version and publisher policy. By default, applications run only with the assembly version with which they were built.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182155.aspx
ComVisibleAttribute determines how COM clients access managed code. Good design dictates that assemblies explicitly indicate COM visibility. COM visibility can be set for the whole assembly and then overridden for individual types and type members. If this attribute is not present, the contents of the assembly are visible to COM clients.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182157.aspx
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182158.aspx
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182136.aspx
A public or protected method has a name that starts with ""Get"", takes no parameters, and returns a value that is not an array. The method might be a good candidate to become a property.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182181.aspx
An enumeration is a value type that defines a set of related named constants. Apply FlagsAttribute to an enumeration when its named constants can be meaningfully combined.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182159.aspx
An unsealed externally visible type provides an explicit method implementation of a public interface and does not provide an alternative externally visible method that has the same name.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/library/ms182153.aspx
A public or protected type implements the System.IComparable interface. It does not override Object.Equals nor does it overload the language-specific operator for equality, inequality, less than, or greater than.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182163.aspx
Interfaces define members that provide a behavior or usage contract. The functionality that is described by the interface can be adopted by any type, regardless of where the type appears in the inheritance hierarchy. A type implements an interface by providing implementations for the members of the interface. An empty interface does not define any members; therefore, it does not define a contract that can be implemented.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/ms182128.aspx
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182168.aspx
Platform Invocation methods, such as those that are marked by using the System.Runtime.InteropServices.DllImportAttribute attribute, or methods that are defined by using the Declare keyword in Visual Basic, access unmanaged code. These methods should be of the NativeMethods, SafeNativeMethods, or UnsafeNativeMethods class.
Category: Design
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182161.aspx
An internal exception is visible only inside its own internal scope. After the exception falls outside the internal scope, only the base exception can be used to catch the exception. If the internal exception is inherited from T:System.Exception, T:System.SystemException, or T:System.ApplicationException, the external code will not have sufficient information to know what to do with the exception.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/bb264484.aspx
Identifiers for namespaces, types, members, and parameters cannot differ only by case because languages that target the common language runtime are not required to be case-sensitive.
Category: Naming
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182242.aspx
Identifiers should have correct prefix
Category: Naming
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182243.aspx
Names of parameters and members are better used to communicate their meaning than to describe their type, which is expected to be provided by development tools. For names of members, if a data type name must be used, use a language-independent name instead of a language-specific one.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/bb531486.aspx
The name of a public or protected member starts with ""Get"" and otherwise matches the name of a public or protected property. ""Get"" methods and properties should have names that clearly distinguish their function.
Category: Design
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/ms182253.aspx
An externally visible enumeration is marked by using FlagsAttribute, and it has one or more values that are not powers of two or a combination of the other defined values on the enumeration.
Category: Usage
Severity: Warning
Help: http://msdn.microsoft.com/library/ms182335.aspx
GetHashCode returns a value, based on the current instance, that is suited for hashing algorithms and data structures such as a hash table. Two objects that are the same type and are equal must return the same hash code.
Category: Usage
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/ms182358.aspx
A public type implements the equality operator but does not override Object.Equals.
Category: Usage
Severity: Warning
Help: https://msdn.microsoft.com/en-us/library/ms182357.aspx
A writable collection property allows a user to replace the collection with a different collection. A read-only property stops the collection from being replaced but still allows the individual members to be set.
Category: Usage
Severity: Warning
Help: https://msdn.microsoft.com/library/ms182327.aspx
In most programming languages there is no default implementation of the equality operator (==) for value types. If your programming language supports operator overloads, you should consider implementing the equality operator. Its behavior should be identical to that of Equals
Category: Usage
Severity: Warning