CategoriesData & LINQ

Data & LINQ

2 features across 2 C# versions

C# 32007

Language Integrated Query (LINQ)

Enables clean declarative query statements natively within C# architectures across collection arrays or external data sources.

1var lowStock = from p in products where p.Units < 5 select p;
C# 92020

Immutable Records

Enables highly optimized structural models carrying automatic compiler-generated value equality behaviors out of the box.

1public record ProductMetrics(string SKU, decimal MarketValue);
2var p1 = new ProductMetrics("A1", 9.99m);
3var p2 = p1 with { MarketValue = 12.50m };