ooks. GetUpperBound(O); i++)\r(\rcsharpBooks. SetValue (,,book/, + (i + 1), i);\r)\rforeach (string csharpbook in csharpBooks)\r(\rConsole. WriteLine(csharpbook);\r)\rConsole. ReadLine ();\r结构体:\rs truct MyStru\r(\rpublic MyStru(int age, int height)\r(\rthis .age = age;\rthis .height = height;\r}\rpublic int age;\rpublic int height;\rpublic override s tring ToStringO\r(\rreturn nAge: " + age + " Height: " + height;\r)\r) ;\rclas s Program\r(\rs tatic void Main(s tring[J args )\r(\rMyStru[] ms = new MyStru[J { new MySti-u(12, 90),new MyStru(23,45) };\rforeach (MyStru s in ms )\rSys tem.Cons ole.WriteLine(s );\r//WcfServiceClient.ServiceReference 1.Service 1 Client SS new\rServiceReference 1 .Service 1 Client();\r//Sys tem.Cons ole.WriteLine(SS.GetMyStringO);