01 2013 档案

摘要:C# 中,get type 有三中方式,1.typeof 这是强类型的,在编译时,就可以检查,所以一定没问题,但是,这里就必须强引用了2.Type.GetType("") 这个比较麻烦,因为,只能在当前程序集当中搜索,如果夸程序集了,是不是就有问题了啊? (待验证)3. Assembly asm = Assembly.Load(""); asm.GetType(""); 这种方式,可以夸程序集; 阅读全文
posted @ 2013-01-14 13:11 姜大伟 阅读(1032) 评论(0) 推荐(0) 编辑
摘要:1. 标准的反射过程(非其他DLL的)View Code2. .NET 4.0 中的动态编程 编译的时候,会提示一个 找不到编译动态表达式所需的一种或多种类型,是否缺少引用 的 错误,这里应该是创建的工程的时候,没有直接选4.0的缘故,加上引用 Microsoft.CSharp.dll即可 阅读全文
posted @ 2013-01-11 15:36 姜大伟 阅读(183) 评论(0) 推荐(0) 编辑
摘要:[MySQL] -MySQL连接字符串总结(非原创)来源:http://blog.sina.com.cn/s/blog_5f0dab1e0100e4pv.html?retcode=0一、MySQL Connector/ODBC 2.50 (MyODBC 2.50)连接方式1、本地数据库连接Driver={MySQL};Server=localhost;Option=16834;Database=myDataBase;2、远程数据连接Driver={MySQL};Server=myServerAddress;Option=131072;Stmt=;Database=myDataBase; Use 阅读全文
posted @ 2013-01-11 15:34 姜大伟 阅读(214) 评论(0) 推荐(0) 编辑
摘要:[MySQL] -MySQL连接字符串总结(非原创)来源:http://blog.sina.com.cn/s/blog_5f0dab1e0100e4pv.html?retcode=0一、MySQL Connector/ODBC 2.50 (MyODBC 2.50)连接方式1、本地数据库连接Driver={MySQL};Server=localhost;Option=16834;Database=myDataBase;2、远程数据连接Driver={MySQL};Server=myServerAddress;Option=131072;Stmt=;Database=myDataBase; Use 阅读全文
posted @ 2013-01-04 14:37 姜大伟 阅读(705) 评论(0) 推荐(0) 编辑
摘要:using System.Security.Cryptography;需要引用这个命名空间MD5 md = new MD5CryptoServiceProvider(); string source = "aiawaysrain"; byte[] s = Encoding.Default.GetBytes(source); byte[] output = md.ComputeHash(s); string outstring = BitConverter.ToString(output).Replace("... 阅读全文
posted @ 2013-01-04 09:37 姜大伟 阅读(231) 评论(0) 推荐(0) 编辑

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