JSON stands for JavaScript Object Notation.JSON is used for storing and exchanging data.It is important to understand that it is a subset of the javascript language. It defines a set of rules for structuring the data.This means that it specifies how a certain piece of data should be structured. JSON is a Data interchange Format […]
Archives for November 2015
Lazy object initialization in C#
Lazy object initialization is useful for class members which are not always required by the consumers of the class.For example suppose a class member variable accesses an external resource such as web service.Since this variable is accessing an external resource hence creation of the class could be expensive. In the following example Employee class defines a property EmployeeDetails.The EmployeeDetails property fetches its […]
Using WebAPI vs WCF for creating services
Today there are many different types of applications which a user access for different purposes.There are apps for mobile phones and tablets,web applications which are accessed through different devices,embedded applications and many others. All of these applications need to communicate with the outer world to achieve different functionalities.For example a weather app might need real time weather […]
Understanding Single Page Application
Web applications traditionally consists of multiple pages.As the user interacts with the web page ,it results in a post back or request for a new web page. If the user selects some input value on a web page it results in a new request to the web server.So as the user interacts with the different […]
Skip operator in LINQ
When working with collections sometimes we need to perform certain operations only for some of the elements in a collection and skip the rest of the elements.Skip operator is used in such cases. Skip operator in LINQ skips n number of elements in a collection of elements.It returns the remaining elements after skipping the n […]