The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Singleton Class : C# Whidbey

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Sudhakar Sadasivuni

Posts: 418
Nickname: sadasivuni
Registered: Nov, 2003

Sudhakar Sadasivuni is a Microsoft .NET MVP, a project engineer for Wipro technologies.
Singleton Class : C# Whidbey Posted: Jan 28, 2004 11:55 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Sudhakar Sadasivuni.
Original Post: Singleton Class : C# Whidbey
Feed Title: {Sudhakar's .NET Dump Yard;}
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/ssadasivuni/rss.aspx
Feed Description: using Sudhakar.Dotnet.Blog.Main;
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Sudhakar Sadasivuni
Latest Posts From {Sudhakar's .NET Dump Yard;}

Advertisement

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.


Read: Singleton Class : C# Whidbey

Topic: W32/Mydoom@MM Virus Alert Previous Topic   Next Topic Topic: .NET Nightly 97

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use