摘要:很久很久了,一直没有想写东西的欲望,这突然之间发现还是想写一些东西,就算对自己的学习过程的记录。一方面一边学习一边记录笔记和心得来督促自己,另一方面就是想记录下来给大家分享下,并不擅长写作,所以有什么地方写的不好,希望各位看官可以提出来并留言,我将加以改进。 关于如何安装我就不介绍了,官网很完整也很
阅读全文
随笔分类 - 代码
摘要:using System; using System.Collections.Generic; using System.IO; using System.Text; namespace 同步文件 { enum SyncResult { Success, SourceDirNotExists, DestDirNotExists } class Fl...
阅读全文
摘要:什么是语法设置多个文件扩展名的searchPattern上Directory.GetFiles()?例如过滤掉的文件与x和的。ascx扩展。// TODO: Set the string 'searchPattern' to only get files with// the extension '...
阅读全文
摘要:string strParam = Request.Params["param"];if ( strParam== null ){ strParam= "";}string strParam= Request.Params["param"] == null ? "": Request.Para...
阅读全文
摘要:public DataTable GetCsvData(string filePath, string fileName = "Shipping") { string path = Path.Combine(filePath, fileName + ".csv...
阅读全文
摘要:delegate Boolean moreOrlessDelgate(int item); class Program { static void Main(string[] args) { var...
阅读全文
摘要:1.读写文件第一步创建文件流 语法: FileStream 文件对象=new FileStream(string FilePath, FileMode); FilePath: 文件路径 FileMode: 打开文件的模式,是一个枚举类型 Create: 用于指定的名称新建一个文件,如果...
阅读全文
摘要:public bool UserIDfromFile(string userID) { bool result = false; string strFileName = HttpContext.Current.Server.MapPath(@".\file") + @"\userInfo.txt"...
阅读全文
摘要:private static void DetelteAllCookies(string domain) { if (HttpContext.Current.Request.Cookies["userToken"] == null) { string cookieName; int limit =...
阅读全文
摘要:判断是否为中文 public string IsChina(string CString) { string ResultValue = string.Empty; for (int i = 0; i < CString.Length; i++) { if (Convert.ToInt32(Conv...
阅读全文

浙公网安备 33010602011771号