Skip to content

Glossary: C# Beyond the Basics

object initializer

Braces after `new()` that set properties by name, such as `new() { Name = "Rose City Pottery" }`. It is the only place `init` and `required` properties can be set.

Where the book teaches it

Related terms

initrequired