Back to Basics : Singleton Design Pattern using System.Lazy type

This article takes you to a simpler/alternative approach in making a Singleton Design Pattern implementation using System.Lazy class rather that using our traditional approach. Singleton Design Pattern implementation without lazy initialization: – This code is thread safe enabled This approach ensures that only one instance is created and only when the instance is needed. Also, …

Continue reading ‘Back to Basics : Singleton Design Pattern using System.Lazy type’ »

Static vs Singleton Classes

Recently while I was attending an interview I came across a question Static vs Singleton. Though I know the differences I couldn’t answer it properly, as I was not refreshed my programming knowledge before the interview. I would like to quote a reference to Jalpesh’s blog article (www.dotnetjalps.com) explaining the difference: Difference between Static and …

Continue reading ‘Static vs Singleton Classes’ »

Enterprise Solution Patterns Using Microsoft .NET – Version 2.0

This is a little old document. But very useful for people who would like to learn more about “Enterprise Solution Patterns using Microsoft.NET” , by Microsoft Patterns & Practices This document is very good for referencing for common solution patterns and provides little more focus on ASP.NET based Solution Pattterns. Nice reference though!!.

Enterprise Library 5.0 & Unity 2.1(Dependency Injection Container) for Silverlight and Enterprise Library 5.0 Optional Update 1 for .NET(ASP.NET,WinForms)

Microsoft has recently released few updates for Microsoft Enterprise Library 5.0 (A collection of reusable application blocks(logging,caching, cryptography, data access etc) for .NET. One of the interesting part of these releases are Enterprise Library 5.0 & Unity 2.1(Dependency Injection Container) for Silverlight. more details about each release are given below. Enterprise Library 5.0 for Silverlight This release provides …

Continue reading ‘Enterprise Library 5.0 & Unity 2.1(Dependency Injection Container) for Silverlight and Enterprise Library 5.0 Optional Update 1 for .NET(ASP.NET,WinForms)’ »