linq
-
c# .net split strings with math divrem using lambda linq
Recently I came across a nice alternative to loops using linq for evenly splitting a string using Math.DivRem. The following example illustrates how this can be used to parse a sequence of numbers based on a time series which may… Continue reading
-
OrderBy Column Name as String using Linq C# .Net Dynamic Sorting of Anonymous Types
If you’re familiar with Linq, you have undoubtedly used the popular “OrderBy” extension method. Unfortunately, this method does not accept a string value with the column name. To resolve, you can add the following small class or just the method… Continue reading
-
Convert SQL to Linq
Was looking to convert a complex SQL query and short on time, so came across this nifty little tool to automate the conversion! It even outputs and autobuilds necessary classes! At the time of this article supports all versions of… Continue reading