单项选择题
在ADO.NET中。下列代码运行后的输出结果是DataTable dt = new DataTable();dt.Columns.Add("编号",typeof(System.Int16));dt.Columns.Add("成绩",typeof(System.Int16));for(int i=1;i<=3;i++){DataRow dr = dt.NewRow();dr【0】 = i;dt.Rows.Add(dr)}Console WriteLine(dt.Columns.Count)
A.1
B.2
C.3
D.4
A.NET中。下列代码运行后的输出结果是DataTable
B.Columns.Add("编号",typeof(System.Int16));dt.Columns.Add("成绩",typeof(System.Int16));for(int
C.NewRow();dr【0】
D.Rows.Add(dr)}Console
E.Columns.Count)
A.1
B.2
C.3
D.4