XIAOJINJIN

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2020年5月16日

摘要: 模式设计的对象: 1、客户角色:发出一个具体的命令并确定其接受者。 2、命令角色:声明了一个给所有具体命令类实现的抽象接口 3、具体命令角色:定义了一个接受者和行为的弱耦合,负责调用接受者的相应方法。 4、请求者角色:负责调用命令对象执行命令。 5、接受者角色:负责具体行为的执行。 1 using 阅读全文
posted @ 2020-05-16 11:27 XIAOJINJIN 阅读(94) 评论(0) 推荐(0)

2020年5月9日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactoryMode { // 桥接设计模式 阅读全文
posted @ 2020-05-09 09:08 XIAOJINJIN 阅读(153) 评论(0) 推荐(0)

2020年5月7日

摘要: BitArray bitArray = new BitArray(16); ushort val =123; bitArray = new BitArray(BitConverter.GetBytes(val)); int shorN = 0; for (ushort i = 0; i < bitA 阅读全文
posted @ 2020-05-07 14:50 XIAOJINJIN 阅读(372) 评论(0) 推荐(0)

2020年5月6日

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace DesignMode { public clas 阅读全文
posted @ 2020-05-06 22:51 XIAOJINJIN 阅读(107) 评论(0) 推荐(0)

2020年5月5日

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.Threading.Tasks; 6 7 namespace FactoryMod 阅读全文
posted @ 2020-05-05 17:21 XIAOJINJIN 阅读(158) 评论(0) 推荐(0)

摘要: using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace FactoryMode { public abs 阅读全文
posted @ 2020-05-05 12:04 XIAOJINJIN 阅读(162) 评论(0) 推荐(0)

2020年4月28日

摘要: using System.Collections.Generic;using System.ComponentModel; private List<string> GetEnumInfo(Type Enum ) { Type type = Enum; object[] CurObj =type.G 阅读全文
posted @ 2020-04-28 19:08 XIAOJINJIN 阅读(995) 评论(0) 推荐(0)

2020年4月24日

摘要: /// 该函数设置由不同线程产生的窗口的显示状态 /// </summary> /// <param name="hWnd">窗口句柄</param> /// <param name="cmdShow">指定窗口如何显示。查看允许值列表,请查阅ShowWlndow函数的说明部分</param> // 阅读全文
posted @ 2020-04-24 10:59 XIAOJINJIN 阅读(156) 评论(0) 推荐(0)

摘要: 在C#中的接口的使用,可实现如C++那样 类的多态性承接使用 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; namespa 阅读全文
posted @ 2020-04-24 10:33 XIAOJINJIN 阅读(94) 评论(0) 推荐(0)