Coffeehouse Thread

3 posts

Forum Read Only

This forum has been made read only by the site admins. No new threads or comments can be added.

Eric Gunnerson - C# Static Classes in Whidbey

Back to Forum: Coffeehouse
  • User profile image
    lenn

    Eric Gunnerson, Visual C# Program Manager at Microsoft blogs about new features in C# for VS.NET 2005 including this post on static classes.

  • User profile image
    LazyCoder

    If you have a static class full of static methods aren't you really just defining macros (without all of the problems that go along with macros)?

  • User profile image
    BradA

    You know, I agree with you… Static classes can *certainly* be abused.  Static classes are not a very “OO” friendly concept.  That said, good API design is a compromise between pure OO design and usability.  There are just some cases where the problem space doesn’t warrant full OO mapping…  Check out System.IO.Path as an example.  

    We have used static classes a judiciously in the framework and it is good to see that pattern being enforced in the compiler.  

Conversation locked

This conversation has been locked by the site admins. No new comments can be made.