Browse by Tags

All Tags » LINQ (RSS)

Serialize only specific class properties to JSON string using JavaScriptSerializer by hajan

About one year ago I wrote a blog post about JavaScriptSerializer and the Serialize and Deserialize methods it supports. Note: This blog post has been in draft for sometime now, so I decided to complete it and publish it. There might be situation when...

Linqer – a nice tool for SQL to LINQ transition by hajan

Almost all .NET developers who have been working in several applications up to date are probably familiar with writing SQL queries for specific needs within the application. Before LINQ as a technology came on scene, my daily programming life was about...
Filed under: , , , , , ,

Tips and Tricks: Deferred execution using LINQ by hajan

Few days ago I was watching the Scott Allen’s video where he shows some interesting tips and tricks and ways to optimize your LINQ code. The following blog refers to one of his first tips in the video, so I’ve tried some tests which I’m going to explain...
Filed under: , , , ,

Calculate Business Days using LINQ by hajan

In this blog post, I will show one simple way to get the total business days within given range of two dates. Question related to this topic was asked several times in many ASP.NET / .NET Communities, so I thought it would be very good to document it...
Filed under: , ,

Get Distinct values of an Array using LINQ by hajan

In this blog post, I will show how you can filter your array and remove all duplicate elements so that the end result will be array with distinct values. Moreover, the main idea is to do this without using any other (two or more) array(s) to make this...
Filed under: , ,
More Posts