Where are we supposed to use static classes?

I have been coding a bit recenly and coding for me means running assemblies through FxCop to be bitched at abput how my class does not yet comply with the CLS despite the fact it is marked compliant.

On one of my many adventures through the CLS documentation i found this “interesting” little phrase relatong to usage of static classes.

“Static classes should not be used as a misculaneous dumping ground”, why? and furthermore, why is System.Environment a good example of a static class?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s