Query Expression
SQL-like C# syntax that the compiler translates into LINQ method calls.
What is Query Expression in C#?
Query Expression — SQL-like C# syntax that the compiler translates into LINQ method calls.
class NameFilter
{
IEnumerable<string> ShortNames(IEnumerable<string> names)
{
return names
.Where(name => name.Length < 5)
.Select(name => name.ToUpper());
}
}
Level: Freelancer · More C# terms at this level
Updated