Soenneker.Extensions.Enumerable.Document
4.0.348
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Enumerable.Document --version 4.0.348
NuGet\Install-Package Soenneker.Extensions.Enumerable.Document -Version 4.0.348
<PackageReference Include="Soenneker.Extensions.Enumerable.Document" Version="4.0.348" />
<PackageVersion Include="Soenneker.Extensions.Enumerable.Document" Version="4.0.348" />
<PackageReference Include="Soenneker.Extensions.Enumerable.Document" />
paket add Soenneker.Extensions.Enumerable.Document --version 4.0.348
#r "nuget: Soenneker.Extensions.Enumerable.Document, 4.0.348"
#:package Soenneker.Extensions.Enumerable.Document@4.0.348
#addin nuget:?package=Soenneker.Extensions.Enumerable.Document&version=4.0.348
#tool nuget:?package=Soenneker.Extensions.Enumerable.Document&version=4.0.348
Soenneker.Extensions.Enumerable.Document
ID projection and lookup extensions for sequences of IDocument values.
Installation
dotnet add package Soenneker.Extensions.Enumerable.Document
Project IDs
using Soenneker.Documents.Document.Abstract;
using Soenneker.Extensions.Enumerable.Document;
IEnumerable<IDocument> documents = GetDocuments();
List<string> ids = documents.ToIds();
ToIds() creates a new list in source order. Duplicate IDs are preserved, documents are not cloned or modified, and a null source returns an empty list. The source is enumerated once; known counts are used only to pre-size the result.
Find an ID
bool contains = documents.ContainsId("document-42");
ContainsId() stops at the first match and returns false for a null source. Comparison uses the string == operator, which is ordinal and case-sensitive for non-null strings. The sequence must not contain null document entries; accessing a null element fails.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Soenneker.Documents.Document (>= 4.0.2717)
- Soenneker.Extensions.Enumerable (>= 4.0.664)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.357 | 41 | 9/16/2026 |
| 4.0.356 | 42 | 9/16/2026 |
| 4.0.355 | 49 | 9/16/2026 |
| 4.0.354 | 52 | 9/15/2026 |
| 4.0.352 | 87 | 9/13/2026 |
| 4.0.351 | 85 | 9/13/2026 |
| 4.0.350 | 85 | 9/13/2026 |
| 4.0.349 | 89 | 9/13/2026 |
| 4.0.348 | 85 | 9/12/2026 |
| 4.0.347 | 77 | 9/12/2026 |
| 4.0.346 | 86 | 9/12/2026 |
| 4.0.345 | 86 | 9/12/2026 |
| 4.0.344 | 82 | 9/12/2026 |
| 4.0.343 | 92 | 9/9/2026 |
| 4.0.342 | 81 | 9/9/2026 |
| 4.0.341 | 101 | 9/8/2026 |
| 4.0.340 | 106 | 9/7/2026 |
| 4.0.339 | 97 | 9/7/2026 |
| 4.0.338 | 97 | 9/7/2026 |
| 4.0.337 | 91 | 9/7/2026 |
Update dependency Soenneker.Extensions.Enumerable to 4.0.662 (#736)