摘要: 1 namespace test 2 3 { 4 5 #region 武器接口和对每个武器的实现 6 7 /// <summary> 8 9 /// 武器攻击的通用接口 10 11 /// </summary> 12 13 internal interface IAttack 14 15 { 16 17 /// <summary> 18 19 /// 攻击,参数是被攻击的对象 20 21 /// </summary> 22 23 /// <p... 阅读全文
posted @ 2011-06-10 16:04 张占岭 阅读(543) 评论(0) 推荐(0) 编辑
摘要: namespace test{ #region 使用反射实现的抽象工厂 internal static class ReflectionFactory { private static String _windowType; private static String _styleType; static ReflectionFactory() { XmlDocument xmlDoc = new XmlDocument(); xmlDoc.Load(@"f:/test.xml"); XmlNode xmlNode = xmlDoc.ChildNodes[0]; _wind 阅读全文
posted @ 2011-06-10 15:59 张占岭 阅读(712) 评论(0) 推荐(0) 编辑