10 2011 档案

摘要:【问】以下代码问题出在哪里呢?[C#]namespace Test{ public class MainTest { public static void Main(String[] args) { Object obj = new string(new char[]{‘a’,’b’,’c’}); List<Object> objects = new List<string>(); } ... 阅读全文
posted @ 2011-10-29 10:48 Serviceboy 阅读(1573) 评论(4) 推荐(0)
摘要:【问】假设有这样一段代码[C#]namespace MyTest{public interface I{void Change(int x, int y);}public struct Point:I{public int X { get; set; }public int Y { get; set; }public override string ToString(){return X+","+Y;}public void Change(int x, int y){X=x;Y=y;}}public class Program{static void Main(string 阅读全文
posted @ 2011-10-25 13:02 Serviceboy 阅读(680) 评论(0) 推荐(1)