Singleton Design Pattern vs Static Class in C#

If you are new to design pattern, then read my earlier blog on Design Pattern. We have explored ASP.Net Singleton Design Pattern in earlier blog. This blog will help us to know the differences between Singleton Design Pattern and Static Class in C# The most common questions asked related to Singleton Design Pattern is difference between static … Read more

ASP.Net Singleton Design Pattern

In the previous blog, we have seen about “What is Design Pattern?” Now this is time to explore the types of Design Pattern.Let’s start this with Singleton Design Pattern.Singleton Design pattern belongs to Creational Design Pattern. Singleton Pattern ensures that only one instance of the class exists through out the application life cycle.Singleton design pattern … Read more

Web Service to return data in JSON format

Web services are those services which are available over web to communicate between systems.By default Web Service returns data in XML format, now if the requirement is to return in JSON format then we need to do modification in web method.Below webmethod returns data in JSON format.     [WebMethod]     [ScriptMethod(ResponseFormat = ResponseFormat.Json)]     … Read more