How To Create And Initialize A List In C#



TODO:

Have you ever wanted to create and initialize a list on the fly?

 

SOLUTION:

 

List<int> MyNumberList = new List<int>(){ 6, 1, 3, 4 };

 

 

NOTES:

No notes on this topic.



Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading