https://github.com/picrap/virtuallist
A list implementation that can be filled progressively
https://github.com/picrap/virtuallist
Last synced: 4 months ago
JSON representation
A list implementation that can be filled progressively
- Host: GitHub
- URL: https://github.com/picrap/virtuallist
- Owner: picrap
- License: mit
- Created: 2023-05-07T09:11:45.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2024-12-05T15:17:03.000Z (over 1 year ago)
- Last Synced: 2025-08-21T14:50:52.654Z (10 months ago)
- Language: C#
- Size: 67.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# VirtualList
## Why?
The idea was to have a dynamically filled list, initially to get big password derivation without losing much time at start.
However it also can be used for paged views.
## How?
```csharp
var list = new VirtualReadOnlyList(
reader, // an implementation of IVirtualListReader
// or a simple lambda to provide data parts
20, // the total size (as returned by IReadOnlyList<>.Count)
7 // the page size, which the reader fills
);
// then use it, it is a IReadOnlyList
var a = list[12];
var r = list[1..3];
```