- 博客(7)
- 收藏
- 关注
原创 Ranorex编译工程面向不同平台
1、复制.csproj文件,用VS打开复制后文件并添加条件编译符号如下,保存关闭2、VS打开副本csproj文件文件并编译 #if _IS_ZWCAD 脚本#else 脚本#endif打开那个工程就运行那块脚本,可以上传到一个SVN路径...
2019-12-30 18:53:06 125
原创 C#学习记录3
public class Std { public int Inum; public string strName; ArrayList Iage = new ArrayList(); public void getvalue(int num, string Name, int[] age) { ...
2019-12-15 21:27:01 70
原创 建造者模式
/// <summary> /// 食物条目 /// </summary> public interface Item { string name(); Packing packing(); float Price(); } public interface Packing{ string pack(); }...
2019-12-13 15:18:14 72
原创 单例模式
饿汉式 优点:没有加锁,执行效率会提高。 缺点:类加载时就初始化,浪费内存。 public class SingletonPattern { public static SingletonPattern Instance=new SingletonPattern(); private SingletonPattern(){} pub...
2019-12-12 11:35:36 61
原创 适配器模式
/// <summary> /// 创建接口 /// </summary> public interface MediaPlayer { void Player(string audioType,string Filename); } public interface AdvancedMediaPlayer { void PlayerMP...
2019-12-12 10:41:35 65
原创 抽象工厂模式
//创建一个接口 public interface Shape { void draw(); } public interface Color { void fill(); } //创建实现接口的实体类 public class Rectangle :Shape { //@override public void draw(){ Report....
2019-12-10 14:22:42 61
原创 工厂模式
//创建一个接口 public interface Shape { void draw(); } //创建实现接口的实体类 public class Rectangle :Shape { //@override public void draw(){ Report.Info("Square::shape().menthod"); } } pub...
2019-12-10 10:56:37 77
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人