Skip to content

Collections and Queries in C#

Every page here directly affects how you shape or query in-memory data and sequences.

FeatureIntroduced InWhy it belongs hereGuide
Lambda expressionsC# 3.0Core building block for projection and filtering.Guide
LINQ query expressionsC# 3.0Declarative query syntax over sequences.Guide
Anonymous typesC# 3.0Common LINQ projection target.Guide
Iterator (yield)C# 2.0Creates lazy sequences for enumeration pipelines.Guide
Collection expressionsC# 12.0Concise collection creation and spreading.Guide
Collection expression argumentsC# 15.0 previewKeeps constructor-style collection setup inside the collection expression syntax.Guide
Range operatorC# 8.0Slices arrays, spans, and strings.Guide