You work as an application developer at Contoso.com. You use Microsoft .NET Framework 3.5 and Microsoft ADO.NET to develop an application that will connect to the Microsoft SQL Server 2005 database. Your application contains the following code. 01 DataTable dt = new DataTable(); 02 dt.Columns.Add("number"); 03 dt.Columns.Add("string"); 04 dt.Rows.Add(1, "3"); 05 dt.Rows.Add(2, "2"); 06 dt.Rows.Add(3, "1"); 07 var result = from p in dt.AsEnumerable() 08 09 foreach (var number in result) { 10 Console.Write(number.ToString()); 11 } You need to display the string "321". What should you do?()
- A、A
- B、B
- C、C
- D、D
正确答案:A
答案解析:有
微信扫一扫手机做题