I've got a basic conceptual doubt and have been looking for an answer for some time now. I've initialized a list in the following manner :
List<string> list = new List<string>() { "a", "b", "c" };
Just this once I missed the () and initialized it in the following manner instead :
List<string> list = new List<string> { "a", "b", "c" };
No compile time or run time error was thrown. so I want to know if the second method is right? And what is the difference between the two?