12 2012 档案
摘要:1 1.由string的rgb数值"255,255,0"转换为color 2 3 { 4 5 //string[] color_params = e.Parameter.ToString().Split(','); 6 //byte color_R = Convert.ToByte(color_params[0]); 7 //byte color_G = Convert.ToByte(color_params[1]); 8 //byte color_B = Con...
阅读全文
摘要:1 public static string Md5Sum(string strToEncrypt) 2 { 3 System.Text.UTF8Encoding ue = new System.Text.UTF8Encoding(); 4 byte[] bytes = ue.GetBytes(strToEncrypt); 5 6 // encrypt bytes 7 System.Security.Cryptography.MD5CryptoServiceProvider md...
阅读全文
摘要:1、Assembly.LoadFile只载入相应的dll文件,比如Assembly.LoadFile("abc.dll"),则载入abc.dll,假如abc.dll中引用了def.dll的话,def.dll并不会被载入。 Assembly.LoadFrom则不一样,它会载入dll文件及其引用的其他dll,比如上面的例子,def.dll也会被载入。2、用Assembly.LoadFrom载入一个Assembly时,会先检查前面是否已经载入过相同名字的Assembly, 比如abc.dll有两个版本(版本1在目录1下,版本2放在目录2下),程序一开始时载入了版本1,当使用Ass
阅读全文
摘要:1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <meta http-equiv="Content-Type" content="text/html; c
阅读全文

浙公网安备 33010602011771号