C# language feature:
applies to
benefit
- Facilitates encapsulation of a set of read-only properties into a single object without having to explicitly define a type first.
how to use
- Use
new
operator together with an object initializer (without specifying class/type identifier/name).
example: