8000 GitHub - dipeshc/LazyEnumerable: An IEnumerable wrapper library designed to lazily load bulk IEnumerable data
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

dipeshc/LazyEnumerable

Repository files navigation

LazyEnumerable Build Status

IEnumerable wrapper library designed to lazily load backing IEnumerable data.

IEnumerable<T> LazyEnumerable<T>(count, (start, count) => { })

Example

var history = new LazyEnumerable<History>(10, (start, count) =>
{
	return someApi.GetHistory(start, count);
});

foreach(var h in history)
{
	// if(condition)
		break

	// Do something
}

The foreach iterates through the history with every 10th iterations triggering a GetHistory from the api.

About

An IEnumerable wrapper library designed to lazily load bulk IEnumerable data

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0