C++ C#

LazyList<T> Class

API Reference

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.

public class LazyList<T>

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

This website stores cookies on your computer that are used to manage the order in which you see the pages. To find out more about the cookies we use, see our Privacy Policy.