Yield IEnumerable vs List Building
This post describes the use of yield and compares it to building and returning a list behind an IEnumerable<T> interface.Download Source CodeSetup The example consists of a contact store that...
View ArticleButcher the LINQ to SQL Resource Hog
Has your LINQ to SQL repository ever thrown a "cannot access a disposed object" exception? You can fix it by calling ToList on the LINQ query but it will impede your application’s performance and...
View Article10x Performance Gain: IEnumerable vs IQueryable
This post compares IEnumerable against IQuerable using an experiment to illustrate the behaviour and performance differences. Spotting a func vs an expression func filter bug is easy to miss. The...
View ArticleYield IEnumerable vs List Building
This post describes the use of yield and compares it to building and returning a list behind an IEnumerable<T> interface.Download Source CodeSetup The example consists of a contact store that...
View ArticleButcher the LINQ to SQL Resource Hog
Has your LINQ to SQL repository ever thrown a "cannot access a disposed object" exception? You can fix it by calling ToList on the LINQ query but it will impede your application’s performance and...
View Article10x Performance Gain: IEnumerable vs IQueryable
This post compares IEnumerable against IQuerable using an experiment to illustrate the behaviour and performance differences. Spotting a func vs an expression func filter bug is easy to miss. The...
View Article
More Pages to Explore .....