expression-bodied member

A method or property whose body is a single expression written after =>, such as public bool InStock => Units > 0;.

In more detail

It is shorthand for a body with one return statement. A property written this way is computed each time it is read and stores nothing.

Related terms

Taught in

References