Lazy<T> property caching alternative

by Alex Siepman 17. March 2014 20:50
Lazy Has some disadvantages when you use it for caching properties, If you use other members of a class, it has to be set in the constructor. I created an anternative so you can implement the property in the property. Also caching IEnumerable makes no sence because you get a new iterator all the time so in fact it is not cached at all. This is also fixed, [More]

LazyList<T>: A better LINQ-result-cache than List<T>

by Alex Siepman 9. October 2013 20:17
Caching LINQ results with ToList() has some disadvantages. Not using caching can have disadvantages to. There is a smart solution that does not cache more than needed. [More]

About the author

I am a software architect at Roxit and also a C# Developer. My main interests in the area of ​​C# are LINQ and generics

Visit my personal homepage (Dutch) for more info about me.

Month List

Page List