Category: Expression Bodied Members

C# Expression Bodied Members

We first saw expression bodied members introduced in C# 6. This introduced the ability to take a single expression method and read-only property and reduce it to a more concise form. Functions For example a single line function can be reduced from this: To the following code below: Read-only Properties A read-only property can be […]