文章分类 -  C#基础

摘要:.net是一种建立在虚拟机上执行的语言,它直接生成 MSIL 的中间语言,再由.net编译器 JIT 解释映象为本机代码并交付CPU执行。中间语言很容易被反编译,所以研究下如何有效的保护dll文件。 我大致的方法为 :强签名+混淆+加密。 强签名 强命名程序集,可以确保你的程序集唯一,而不被篡改、冒 阅读全文
posted @ 2017-03-23 18:58 博客园董事长
摘要:路径地址C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\2052\Class 中Class.cs这个文件 ,修改为如下格式,覆盖原始文件 ,重启vs。即可: /**** 阅读全文
posted @ 2016-03-11 10:30 博客园董事长
摘要:今日做计划任务每日重启控制台程序,可是直接启动exe 会报错;后经过折腾,bat文件效果如下:停止batCode:taskkill /im ZHSJCX_WCF.exe /t /f 启动batCodecd /d E:\工作YTXT\2014年7月9日153838\ZHSJCX_WCF\ZH... 阅读全文
posted @ 2015-08-31 16:02 博客园董事长
摘要:using System;using System.Collections.Generic;using System.Text; Dictionary oldZDXX = new Dictionary();string[] aa ="GLBXNAME,GLZD,GLOO,GLZDID".Split... 阅读全文
posted @ 2014-07-02 18:33 博客园董事长
摘要:1: 2: static void Main(string[] args) 3: { 4: timer(null, null); 5: 6: System.Timers.Timer aTimer = new System.Timers.Timer()... 阅读全文
posted @ 2014-04-22 13:41 博客园董事长
摘要:public struct MyStruct{public string str;public int number;}class Program { static void Main(string[] args){MyStruct myStruct =new MyStruct();myS... 阅读全文
posted @ 2014-04-16 17:12 博客园董事长