点燃自己

才发现已成尘

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

随笔分类 -  代码

摘要:很久很久了,一直没有想写东西的欲望,这突然之间发现还是想写一些东西,就算对自己的学习过程的记录。一方面一边学习一边记录笔记和心得来督促自己,另一方面就是想记录下来给大家分享下,并不擅长写作,所以有什么地方写的不好,希望各位看官可以提出来并留言,我将加以改进。 关于如何安装我就不介绍了,官网很完整也很 阅读全文
posted @ 2020-12-05 23:39 爱吃糖豆的猪 阅读(241) 评论(0) 推荐(0)

摘要:using System; using System.Collections.Generic; using System.IO; using System.Text; namespace 同步文件 { enum SyncResult { Success, SourceDirNotExists, DestDirNotExists } class Fl... 阅读全文
posted @ 2017-03-22 10:42 爱吃糖豆的猪 阅读(364) 评论(0) 推荐(0)

摘要:什么是语法设置多个文件扩展名的searchPattern上Directory.GetFiles()?例如过滤掉的文件与x和的。ascx扩展。// TODO: Set the string 'searchPattern' to only get files with// the extension '... 阅读全文
posted @ 2015-12-03 07:35 爱吃糖豆的猪 阅读(11598) 评论(2) 推荐(0)

摘要:string strParam = Request.Params["param"];if ( strParam== null ){ strParam= "";}string strParam= Request.Params["param"] == null ? "": Request.Para... 阅读全文
posted @ 2015-09-26 23:02 爱吃糖豆的猪 阅读(198) 评论(0) 推荐(0)

摘要:public DataTable GetCsvData(string filePath, string fileName = "Shipping") { string path = Path.Combine(filePath, fileName + ".csv... 阅读全文
posted @ 2014-12-19 14:31 爱吃糖豆的猪 阅读(261) 评论(0) 推荐(0)

摘要:delegate Boolean moreOrlessDelgate(int item); class Program { static void Main(string[] args) { var... 阅读全文
posted @ 2014-12-16 16:34 爱吃糖豆的猪 阅读(140) 评论(0) 推荐(0)

摘要:1.读写文件第一步创建文件流 语法: FileStream 文件对象=new FileStream(string FilePath, FileMode); FilePath: 文件路径 FileMode: 打开文件的模式,是一个枚举类型 Create: 用于指定的名称新建一个文件,如果... 阅读全文
posted @ 2014-12-04 13:21 爱吃糖豆的猪 阅读(176) 评论(0) 推荐(0)

摘要:public bool UserIDfromFile(string userID) { bool result = false; string strFileName = HttpContext.Current.Server.MapPath(@".\file") + @"\userInfo.txt"... 阅读全文
posted @ 2014-11-27 11:01 爱吃糖豆的猪 阅读(161) 评论(0) 推荐(0)

摘要:private static void DetelteAllCookies(string domain) { if (HttpContext.Current.Request.Cookies["userToken"] == null) { string cookieName; int limit =... 阅读全文
posted @ 2014-11-27 11:00 爱吃糖豆的猪 阅读(360) 评论(0) 推荐(0)

摘要:判断是否为中文 public string IsChina(string CString) { string ResultValue = string.Empty; for (int i = 0; i < CString.Length; i++) { if (Convert.ToInt32(Conv... 阅读全文
posted @ 2014-11-27 10:44 爱吃糖豆的猪 阅读(148) 评论(0) 推荐(0)