Console.WriteLine and generic List

后端 未结 9 1202
长发绾君心
长发绾君心 2020-11-29 01:53

I frequently find myself writing code like this:

List list = new List { 1, 3, 5 };
foreach (int i in list) {
    Console.Write(\"{0}\\t         


        
9条回答
提交回复
热议问题