摘要: namespace ConsoleApplication1{ class Program { public Program() { } public void swap(ref T x, ref T y) { T m; m = x; x = y; y = m; } /*泛型方法*/ static void Main(string[] args) { Program pro = new Program(); string str1 = "zadk"; string str2 = "zbc"; pro.swap(ref str1,ref str2); Con 阅读全文
posted @ 2014-03-19 11:43 有志青年期待逆袭 阅读(306) 评论(0) 推荐(0)