Posts

Showing posts from January, 2017

Singleton Design Pattern vs Static Class in C#

If you are new to design pattern, then ready 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#

ASP.Net Singleton Design Pattern

Image
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.

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.