上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页

2019年6月11日

C# 函数参数中的this

摘要: 先看下面的代码: 为什么这里会有一个this关键字,做什么用?其实这就是扩展方法!这个扩展方法在静态类中声明,定义一个静态方法,其中第一个参数定义可它的扩展类型。Foo()方法扩展了String类,因为它的第一个参数定义了String类型,为了区分扩展方法和一般的静态方法,扩展方法还需要给第一个参数 阅读全文

posted @ 2019-06-11 13:57 马什么梅 阅读(4735) 评论(0) 推荐(0) 编辑

2019年6月5日

Git 常用命令

摘要: 建立远程仓库连接 在GitHub设置中添加 SSH keys ssh-keygen -t rsa -C "youremail@example.com" 生成ssh文件,转到生成路径 cat id_rsa.pub 获取ssh-rsa秘钥,将秘钥填入GitHub SSH Keys中。 ssh -T gi 阅读全文

posted @ 2019-06-05 14:57 马什么梅 阅读(152) 评论(0) 推荐(0) 编辑

2019年5月28日

C# 判断程序是否执行 进行启动或前台显示

摘要: #region 显示程序 [DllImport("user32.dll", EntryPoint = "FindWindow")] public static extern int FindWindow(string lpClassName, string lpWindowName); /// /// 该函数设置由不同... 阅读全文

posted @ 2019-05-28 14:57 马什么梅 阅读(1013) 评论(0) 推荐(0) 编辑

在窗体中嵌入 应用程序

摘要: //在窗体中嵌入应用程序//show Process process = null; IntPtr appWin; private string exeName = ""; [DllImport("user32.dll", SetLastError = true)] private static extern long S... 阅读全文

posted @ 2019-05-28 09:48 马什么梅 阅读(208) 评论(0) 推荐(0) 编辑

2019年5月20日

byte[] 转 2进制字符串

摘要: /byte[]转为二进制字符串表示byte[] bytesTest =new byte[]{16,18,33};string strResult=string.Empty;string strTemp;for(int i=0;i<bytesTest.Length;i++){strTemp=Syste 阅读全文

posted @ 2019-05-20 14:21 马什么梅 阅读(5092) 评论(0) 推荐(0) 编辑

2019年5月14日

C# 打开 EXE 文件

摘要: 命名空间是using System.Diagnostics; 在编写程序时经常会使用到调用可执行程序的情况,本文将简单介绍C#调用exe的方法。在C#中,通过Process类来进行进程操作。 Process类在System.Diagnostics包中。 示例一 using System.Diagno 阅读全文

posted @ 2019-05-14 09:47 马什么梅 阅读(2241) 评论(0) 推荐(0) 编辑

2019年5月13日

计算 byte[] 转 int modebus 指定位数 获取值 使用

摘要: 计算 byte[] 转 int modebus 指定位数 获取值 使用 阅读全文

posted @ 2019-05-13 15:54 马什么梅 阅读(187) 评论(0) 推荐(0) 编辑

2019年5月8日

C# mysql 处理 事务 回滚 提交

摘要: C# 处理事务需要 通过 MySqlTransaction 类去实现 此类不可被继承 Commit() 提交事务 Rollback()回滚事务 Connection 获取 连接的MySqlConnection对象 需要注意提交和回滚只能调用一次,否则会报错。同理MySQL语句 阅读全文

posted @ 2019-05-08 21:42 马什么梅 阅读(1119) 评论(0) 推荐(0) 编辑

2019年5月7日

flutter ListView 页面滚动组件

摘要: ListView class ListView class A scrollable list of widgets arranged linearly. ListView is the most commonly used scrolling widget. It displays its chi 阅读全文

posted @ 2019-05-07 14:04 马什么梅 阅读(865) 评论(0) 推荐(0) 编辑

2019年5月6日

对日开发中 PG , PL , SE , PM 是什么

摘要: PG(ProGramer)指程序员。 这类人才在企业中所占数量最多,通常占到整个项目员工数的70%,也是企业中最紧缺的一类职位,一般为具有专业知识的软件工程技术人员。 PL(project leader)指项目组长。 项目组长是帮助项目经理管理负责部分的管理者。 SE(system engineer 阅读全文

posted @ 2019-05-06 18:52 马什么梅 阅读(5010) 评论(0) 推荐(0) 编辑

上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 15 下一页

导航