C# Object Initializer

https://www.tutorialspoint.com/csharp_online_training/c_object_initializer.asp

 

 

Best:

From the best video and little bit mosh I have written the code below:

without object initializer:

 

with object initializer:

 

 

with object initializer:

 

 

 

 

Spread the love