C#
burke_____
这个作者很懒,什么都没留下…
展开
-
多线程、委托、事件的范本
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Windows.Forms;using System.IO;using Bina转载 2017-04-13 09:21:56 · 626 阅读 · 0 评论 -
c# 事件响应的简写
button1.Click += new EventHandler((obj,args)=> { MessageBox.Show("test"); }) ;原创 2017-04-11 16:57:46 · 881 阅读 · 0 评论 -
C#代码获得windows服务的安装目录
AppDomain.CurrentDomain.BaseDirectory原创 2017-03-31 13:10:53 · 1329 阅读 · 0 评论 -
C# AES
//直接引用就可以using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Security.Cryptography;using System.Text;namespace AESTest{ /// /// DES加密转载 2016-10-26 18:38:51 · 282 阅读 · 0 评论 -
把C#程序(含多个Dll)合并成一个Exe的超简单方法
开发程序的时候经常会引用一些第三方的DLL,然后编译生成的exe文件就不能脱离这些DLL独立运行了。但是,很多时候我们本想开发一款只需要一个exe就能完美运行的小工具。那该怎么办呢?下文介绍一种超简单的方法,不用写一行代码就可轻松实现。这里我们需要用到一款名为Fody.Costura的工具。Fody.Costura是一个Fody框架下的插件,可通过Nuget安装到VS工程中原创 2017-05-18 22:11:59 · 4876 阅读 · 0 评论 -
c# leveldb测试
private void button1_Click(object sender, EventArgs e) { var db = LevelDB.DB.Open(new LevelDB.Options() { CreateIfMissing=true},Environment.CurrentDirectory+@"\test.db");原创 2017-03-16 22:38:01 · 1688 阅读 · 0 评论