Category: C# Hacks

  • LINQ vs Lambda vs loop – A performance test

    I was wondering about the benefits of using Linq over Lambda or vice versa for data filtering. I knew that the for loop was the fastest. But I was really interested to know whether lambda expression had any advantage over traditional LINQ syntax. For my understanding, both LINQ and lambda were same. Lambdas are the […]

  • Pass Data from View to Partial View using session without using model

    One of the place I had to pass a value from a view to a partial view but I was not supposed to alter the model. Hence. I went back to the roots and used session to pass the value between the views. Whats important here is that, as it is a session value, you can […]