Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the name of this C# syntax?

In C#, you can do something like this:

SomeClass someClass = new SomeClass () {
    SomeProperty = someValue
};

What is this syntax called?

like image 412
Matthew Avatar asked Dec 30 '09 03:12

Matthew


People also ask

What is Baby C's name?

The most popular names starting with C in the U.S. are currently Charlotte, Camila, Chloe, Claire, Caroline, Carter, Charles, Caleb, Christopher, and Cameron.


1 Answers

Object initializer is the name.

like image 83
Graviton Avatar answered Oct 18 '22 03:10

Graviton