adambard / adambard/learnxinyminutes-docs

[csharp/en] Mentions that IQueryable<T> is implemented by most collections to give functionality that is actually provided by IEnumerable<T>

Offen
#5,277 0 Kommentare 1 Reaktion 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Markdown
Sterne
12.3k
Forks
3.7k
Ø Merge
13 Std. 10 Min.
Gemergte PRs (30 T.)
6

Beschreibung

The Statement
'
// IQUERYABLE\ - almost all collections implement this, which gives you a lot of
// very useful Map / Filter / Reduce style methods
'
Should state:
'
// IEnumerable\ - almost all collections implement this, which gives you a lot of
// very useful Map / Filter / Reduce style methods
'
see:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.ienumerable-1?view=net-8.0#methods

and the Collections that dont implement IQueryable\ but implement IEnumerable\:

List:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1?view=net-8.0
Stack:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.stack-1?view=net-8.0
Queue:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.queue-1?view=net-8.0
Dictionary:
https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.dictionary-2?view=net-8.0

Beitragsleitfaden

Beitragsleitfaden öffnen

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.