摘要: /************************************************** * 静 态 构 造 函 数 练 习 * (1)①②③……为执行顺序 * (2)* 输出结果: * static A() * static B() * X = 1, Y = 2 ***************************************************/ using System; class A { public static int X; static A() //④ 执行完后返回到③ { X = B.Y + 1; Console.WriteLine(" 阅读全文
posted @ 2011-04-29 10:48 jumahe 阅读(3623) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;//http://www.cnblogs.com/jiahaipeng/archive/2008/10/23/1317430.html 此文的演示代码。namespace DelegatePrograme{ delegate bool CompareOp(object lhs, object rhs); class Program { static void Main(string[] args) { Employee[] empl 阅读全文
posted @ 2011-04-29 09:57 jumahe 阅读(252) 评论(0) 推荐(0)