Preview Knowledge Pack  devAdvantage

Preview Knowledge Pack

Anticipating Minds will continue to build and release knowledge packs for different areas of expertise.  The Preview Knowledge Pack is meant to preview some of the rules and features that can be expected in future releases and get feedback from users on what they feel would be most valuable.  The rules contained in this knowledge pack are random samplings of rules we are working on and demonstrate many of the valuable features of devAdvantage.

Knowledge Pack Rules
Rule Description
Abstract Types Should Not Have Public Constructors Abstract types cannot be instantiated and should by design not have a public constructor.
Do not allow inheritance of custom attributes Attribute classes should inherit directly from System.Attribute and should therefore be protected from further inheritance
Exceptions Must Be Marked Serializable In order to work properly in all scenarios, exceptions must be serializable and have the Serializable attribute.
ISerializable types should be marked Serializable Classes that implement ISerializable must be marked with Serializable attribute.
Test For Empty Strings Using String Length Test for empty strings using string length, not string.empty or "" to get the best performance.
Unused Method Argument A formal parameter is unreferenced.