donderdag, januari 11, 2007

 

Fun with Singletons in C# 2.0

With the new generics support given by C# 2.0, some common design patterns can be generalized to work with any type. Exploiting the capabilities given by the type system, reflection, and generics, we can accomplish typesafe modular code customization and automation. Fun with Singletons is just a demonstration of the array of possibilities that C# 2.0 features introduce.

http://www.codeproject.com/csharp/FunWithSingletonsCS.asp

ref: http://www.dotnetcat.com/news/C-sharp/