Dev Notes

Suspended Indefinetly...

News

<script type="text/javascript"><!-- google_ad_client = "pub-9887566656700242"; google_ad_width = 120; google_ad_height = 600; google_ad_format = "120x600_as"; google_ad_type = "text"; //2006-12-28: Savvy google_ad_channel = "6620623950"; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> <script type="text/javascript"><!-- google_ad_client = "pub-9887566656700242"; google_ad_width = 120; google_ad_height = 60; google_ad_format = "120x60_as_rimg"; google_cpa_choice = "CAAQxZqazgEaCMOiwb9yonQWKIHD93M"; google_ad_channel = ""; //--></script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>

Favourites

Friends

India MVP & CS

My Blog Roll

Publicity

Static Class : C# Whidbey

Now C# Whidbey got a cool new feature called “Static Classes”

from
VC# sneak preview via Eric

public sealed class MyClass 
{
   // Keep class from being created
   private MyClass() { }
}

can now be written as

public static sealed class MyClass
{  
}

This features replaces the design patterns of creating sealed classes with a private constructor that contains only static methods.


Comments

No Comments

Leave a Comment

(required) 

(required) 

(optional)

(required)