+ 1

[C#] Is there alternative to the member initializer lists from C++ ?

Hi guys. I searched a lot in internet but found no information about it. Could someone tell me if there is an alternative to the member initializer lists (from C++) in C# ?

28th May 2017, 5:55 AM
NickBossBG
NickBossBG - avatar
1 Antwort
0
Hi, according to my knowledge, c# doesn't support this feature. Just for setting default values, you can set them in declaration statement.
18th Dec 2017, 7:44 PM
Rasul Abbasi
Rasul Abbasi - avatar