
c#(功能)
lenovore
这个作者很懒,什么都没留下…
展开
-
ftp 上传文件
public void Upload(string filename) { FileInfo fileInf = new FileInfo(filename); string uri = "ftp://" + ftpServerIP + "/" + fileInf.Name; FtpWebRequest reqFTP; //通过前面得到的uri创建FtpWebRe转载 2012-10-23 16:30:37 · 502 阅读 · 0 评论 -
c# 生成随机数
private static char[] constant = { '0','1','2','3','4','5','6','7','8','9', 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t'翻译 2013-04-15 18:36:23 · 757 阅读 · 0 评论 -
c# 字符串生成唯一长整型
long toVid(string str) { str = System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "MD5"); System.Security.Cryptography.MD5 md5 = new Sys原创 2013-08-13 14:22:38 · 2964 阅读 · 1 评论