Soenneker.Extensions.Enumerable.Document
4.0.342
Prefix Reserved
See the version list below for details.
dotnet add package Soenneker.Extensions.Enumerable.Document --version 4.0.342
NuGet\Install-Package Soenneker.Extensions.Enumerable.Document -Version 4.0.342
<PackageReference Include="Soenneker.Extensions.Enumerable.Document" Version="4.0.342" />
<PackageVersion Include="Soenneker.Extensions.Enumerable.Document" Version="4.0.342" />
<PackageReference Include="Soenneker.Extensions.Enumerable.Document" />
paket add Soenneker.Extensions.Enumerable.Document --version 4.0.342
#r "nuget: Soenneker.Extensions.Enumerable.Document, 4.0.342"
#:package Soenneker.Extensions.Enumerable.Document@4.0.342
#addin nuget:?package=Soenneker.Extensions.Enumerable.Document&version=4.0.342
#tool nuget:?package=Soenneker.Extensions.Enumerable.Document&version=4.0.342
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.2712)
- Soenneker.Extensions.Enumerable (>= 4.0.661)
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.343 | 31 | 9/9/2026 |
| 4.0.342 | 32 | 9/9/2026 |
| 4.0.341 | 78 | 9/8/2026 |
| 4.0.340 | 97 | 9/7/2026 |
| 4.0.339 | 89 | 9/7/2026 |
| 4.0.338 | 87 | 9/7/2026 |
| 4.0.337 | 81 | 9/7/2026 |
| 4.0.336 | 94 | 9/5/2026 |
| 4.0.335 | 89 | 9/4/2026 |
| 4.0.334 | 90 | 9/4/2026 |
| 4.0.333 | 91 | 9/4/2026 |
| 4.0.332 | 87 | 9/4/2026 |
| 4.0.331 | 86 | 8/31/2026 |
| 4.0.330 | 92 | 8/31/2026 |
| 4.0.329 | 91 | 8/31/2026 |
| 4.0.328 | 88 | 8/30/2026 |
| 4.0.327 | 86 | 8/30/2026 |
| 4.0.326 | 97 | 8/30/2026 |
| 4.0.325 | 83 | 8/30/2026 |
| 4.0.324 | 89 | 8/30/2026 |
Updated Multiple NuGet packages