Deferred Execution and Immediate Execution in LINQ

Deferred Execution executes the query only when Loop starts. What I mean here is that, we iterate through the query variable to get the result.       Here the result variable does not contain the actual result. To get the result, we may iterate through the result (query) variable in loop as many time as … Continue reading Deferred Execution and Immediate Execution in LINQ

Advertisements

Var versus IEnumerable in LINQ

We have seen normally Or Now question is where to use var or IEnumerable? Let us first have a look on both key words Var derives type from the right hand side. And its scope is in the method. And it is strongly typed. IEnumerable is interface which allows forward movement in the collection. Now … Continue reading Var versus IEnumerable in LINQ

WCF Service library: Creating, Hosting and consuming WCF service with WCF Service Library project template

In this article we will walkthrough on creating a WCF Service by choosing WCF Service Library project template. Step 1 Create a WCF Service Library project. Delete all the default codes created by WCF. Step 2 Modify Operation Contract as below, Implement the service as below Step 3 Leave App.config file as it is with … Continue reading WCF Service library: Creating, Hosting and consuming WCF service with WCF Service Library project template