One minute
C# Featurette #3 from Eric Gunnerson
Eric describes a new Whidbey feature focused on creating those ‘utility’ classes in the style of System.Math or System.Environment:
_<b><a id="viewpost.ascx_TitleUrl" href="http://blogs.msdn.com/ericgu/archive/2004/04/13/112274.aspx">C# Whidbey Featurette #3: Static classes</a> </b> Because all functions in C# must live inside of a class, there are some clases – System.Math is a canonical example – that are merely collections of static methods. Since it's useless to create an instance of such a class, in current versions of C#, you can protect against this by creating a private constructor. The constructor can never be called, and therefore no instance can be created._ _There are three issues with this approach:_ </blockquote> Of course, you'll have to click on the title of his post to read more 🙂 <div class="media"> [Listening to: Do This Anymore – [Nickelback](http://www.windowsmedia.com/mg/search.asp?srch=Nickelback==) – The Long Road (04:04)] </div>
Thoughts on this post? Feel free to reach out on Bluesky!