LazyList<T> vs System.Lazy<List<T>> in ASP.NET MVC 2?
- by FreshCode
In Rob Conery's Storefront series, Rob makes extensive use of the LazyList<..> construct to pull data from IQueryables.
How does this differ from the System.Lazy<...> construct now available in .NET 4.0 (and perhaps earlier)?
More depth based on DoctaJones' great answer:
Would you recommend one over the other if I wanted to operate on IQueryable as a List<T>?
I'm assuming that since Lazy<T> is in the framework now, it is a safer bet for future support and maintainability?
If I want to use a strong type instead of an anonymous (var) type would the following statements be functionally equivalent?
Lazy<List<Products>> Products = new Lazy<List<Product>>();
LazyList<Product> = new LazyList<Product>();