03 2019 档案

摘要:首先在添加引用中选中System.Management 再在开始部门: using System.Management; using System.Management.Instrumentation; private void GetInfo() { string cpuInfo = "";//cpu序列号 ManagementClass cimobject = new Managem... 阅读全文
posted @ 2019-03-27 16:09 马肯尼煤牙巴骨 阅读(829) 评论(0) 推荐(0) 编辑
摘要:string outPutString = null; string prikey; string pubkey; bool isSeccess = false; using (RSACryptoServiceProvider rsa = new RSACryptoServic... 阅读全文
posted @ 2019-03-27 15:48 马肯尼煤牙巴骨 阅读(165) 评论(0) 推荐(0) 编辑
摘要:public static class ex { public static byte[] RightShift(this byte[] ba, int n) { if (n >= tempN; } else ... 阅读全文
posted @ 2019-03-21 19:02 马肯尼煤牙巴骨 阅读(832) 评论(0) 推荐(0) 编辑
摘要:public static class DataContractHelper { public static void ToDCFile(this T obj, string path) { //路径 FileStream fs = new FileStream(path, FileMode.C... 阅读全文
posted @ 2019-03-19 11:27 马肯尼煤牙巴骨 阅读(132) 评论(0) 推荐(0) 编辑
摘要:public static class BinarySerializationHelper { public static void ToBinaryFile(this T tempSerializeList, string path) // 二进制序列化 { //路径 var fs = new FileStream(path, Fil... 阅读全文
posted @ 2019-03-19 10:19 马肯尼煤牙巴骨 阅读(122) 评论(0) 推荐(0) 编辑
摘要:namespace Test { using System; using System.IO; using System.Text; using System.Xml; using System.Xml.Serialization; using Test.Share; using Microshaoft; public class ... 阅读全文
posted @ 2019-03-19 10:00 马肯尼煤牙巴骨 阅读(189) 评论(0) 推荐(0) 编辑
摘要:1. 声明静态事件 2.静态属性 setter 3. xmal 这里比较重要, 要加括号 不然不能正常通知 甚至编译时异常 T-T 4. 只有.net frameWork 4.5以上才有这个功能, 阅读全文
posted @ 2019-03-17 17:43 马肯尼煤牙巴骨 阅读(678) 评论(0) 推荐(1) 编辑
摘要:转载自 :https://blog.csdn.net/jiankunking/article/details/50016043 using System; using System.Collections.Generic; using System.Linq; using System.Text; 阅读全文
posted @ 2019-03-09 14:07 马肯尼煤牙巴骨 阅读(162) 评论(0) 推荐(0) 编辑
摘要:#region WPF发送和接收win32消息 public const int WM_GETTEXT = 0x0D; public const int WM_SETTEXT = 0x0C; public const int WM_SIZEING = 0x0214; public const int WM_COPYDATA = 0x... 阅读全文
posted @ 2019-03-07 11:30 马肯尼煤牙巴骨 阅读(688) 评论(2) 推荐(0) 编辑
摘要:点击别的winform窗口的按钮 阅读全文
posted @ 2019-03-07 09:43 马肯尼煤牙巴骨 阅读(366) 评论(0) 推荐(0) 编辑
摘要:public static class XmlHelper { public static T FromXmlFile(this string filePath) where T : new() { T result = new T(); if (!File.Exists(filePath))... 阅读全文
posted @ 2019-03-06 11:35 马肯尼煤牙巴骨 阅读(158) 评论(0) 推荐(0) 编辑
摘要:多个应用程序同时写入数据到一个文件中时可用 阅读全文
posted @ 2019-03-01 11:50 马肯尼煤牙巴骨 阅读(309) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示