Namespace: Semata.Lazy
Provides a list that is populated, by a supplied loader, the first time it is accessed. The list maybe reloaded. When a list is reloaded, the existing list is not cleared, but passed to the loader allowing it to merge in new data, rather than clear and repopulate. The loader takes a List of type T and boolean as arguments. The boolean indicates whether or not events should be raised as the list is loaded.
generic <typename T> public ref class LazyList
Constructors
Name | Description |
LazyList(Action<List<T>, bool>) |
Creates the LazyList with the specified loader. |
Properties
Name | Description |
IsLoaded |
Has the list been loaded |
List |
Returns the loaded list |
Methods
Name | Description |
Reload(bool) |
Reloads the list |