Saturday, February 26, 2005

if a class contain just static methods as example i dont need to declare a CTOR, thats good.

extract from FxCop

Error, Certainty 90, for "StaticHolderTypesShouldNotHaveConstructors"
Target : "Indexus.AppCommon.TemporaryLogin" (IntrospectionTargetType)
Resolution : "Remove the public constructors from 'TemporaryLogin'.
Help : "" (String)
Category : "Microsoft.Design" (String)
CheckId : "CA1053" (String)
RuleFile : "Design Rules" (String)
Info : "Instances of types that define only static members
do not need to be created. Many compilers will automatically
add a public default constructor if no constructor
is specified. To prevent this, adding an empty private
constructor may be required."
Created : "2/26/2005 2:45:41 PM" (DateTime)
LastSeen : "2/26/2005 5:12:46 PM" (DateTime)
Status : Active (MessageStatus)
Fix Category : Breaking (FixCategories)

No comments:

Shared Cache - .Net Caching made easy

All information about Shared Cache is available here: Its free and easy to use, we provide all sources at codeplex.

Facebook Badge