05 2012 档案

摘要:1. 用Type 在 website 下C#代码 //定义参数类型数组 Type[] tps = new Type[2]; tps[0] = typeof(int); tps[1] = typeof(string); //定义参数数组 object[] obj = new object[2]; obj[0] = (object)100; obj[1] = (object)"Param Example"; string UserDaoPath = System.Configuration.ConfigurationSettings.AppSettings["User 阅读全文
posted @ 2012-05-31 14:50 StupidsCat 阅读(7597) 评论(0) 推荐(0)
摘要:为自己写的程序加一个注册功能吧。生成的机器号是根据CPU和硬盘号来的,根据自己的需求改成是否是随机生成。 代码直接粘贴到新建类覆盖原代码就能直接用了。using System;using System.Management;using System.Security.Cryptography;using System.Text;namespace RegisterClass{ class RegisterClass { //步骤一: 获得CUP序列号和硬盘序列号的实现代码如下: //获得CPU的序列号 bool Stupids = t... 阅读全文
posted @ 2012-05-29 16:27 StupidsCat 阅读(19998) 评论(9) 推荐(3)