This may seem like an easy question, but not for me, and the search came to nothing. So far, the only .net programming I have done is Delphi Prism. With Prism, I can do things like:
var l := new List<String>(['A','B','C']);
or
var l := new List<String>; l.AddRange(['A','B','C'];
but can I do a similar thing in C #, or do I need to do this like:
var a = new String[] {"A","B","C"}; var l = new List<String>(a);
Aj.
source share