Profile
Achievement
stewartrae's Recent SnippetsTagged load
- All /
« Prev 1 Next »
A simple, thread-safe wrapper class for lazy-loading data into an instance on-demand (i.e. when the instance is first accessed.)
Usage:
LazyLoader<Foo> l = new LazyLoader<Foo>(() => Foo.LoadFromDataSource("DB Connection String"));
// For acc...
2
1140
posted 13 years ago by stewartrae