# 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.

```csharp
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](https://www.ask-codey.com/glossary/subjects/c-sharp/freelancer)

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/query-expression
