In C#, you can do something like this:
SomeClass someClass = new SomeClass () {
SomeProperty = someValue
};
What is this syntax called?
In C#, you can do something like this:
SomeClass someClass = new SomeClass () {
SomeProperty = someValue
};
What is this syntax called?
Object initializer is the name.
© 2022 - 2024 — McMap. All rights reserved.
()
, if they are not supplied the parameter-less constructor will be invoked by default. – Terrific