摘要: /// /// //过滤Html标记 /// /// /// public static string filterHtml(string input) { Regex r = new Regex(@").)*>", RegexOptions.IgnoreCase); string ret... 阅读全文
posted @ 2011-12-14 17:39 顿金 阅读(301) 评论(0) 推荐(0)
摘要: 针对“类”类型,C#中的等号相当于C++中的引用,赋值的结果是产生一个引用而非新的对象。 如果要产生新的一个对象,内容和老的对象一致,可以通过下面方法实现(使用 MemberwiseClone 复制类):class MyBaseClass { public static string Compan... 阅读全文
posted @ 2011-12-14 11:03 顿金 阅读(311) 评论(0) 推荐(0)
摘要: 一、不带参数的usingSystem;usingSystem.Collections.Generic;usingSystem.Text;usingSystem.Threading;namespaceAAAAAA{classAAA{publicstaticvoidMain(){Threadt=newT... 阅读全文
posted @ 2011-12-13 18:04 顿金 阅读(147) 评论(0) 推荐(0)
摘要: int、bigint、smallint 和 tinyint使用整数数据的精确数字数据类型。bigint从 -2^63 (-9223372036854775808) 到 2^63-1 (9223372036854775807) 的整型数据(所有数字)。存储大小为 8 个字节。int从 -2^31 (-... 阅读全文
posted @ 2011-12-13 18:01 顿金 阅读(148) 评论(0) 推荐(0)
摘要: 数据不多时一般使用select count(0) from T_Imei with (nolock)上百万的用:select top 1 rowcnt from sysindexes where id=object_id('T_Imei') 阅读全文
posted @ 2011-12-09 11:20 顿金 阅读(154) 评论(0) 推荐(0)
摘要: Declare @ida smalldatetimeDeclare @icd intDECLARE S_Cursor CURSOR FOR SELECT Date,cid FROM DayRecomStat group by Date order by DateOPEN S_Cursor FETCH... 阅读全文
posted @ 2011-12-08 12:08 顿金 阅读(96) 评论(0) 推荐(0)
摘要: private void button1_Click(object sender, EventArgs e) { cpCount ="二十万零二百五"; MessageBox.Show(cpCount); } string _cpCount; public string cpCount { get... 阅读全文
posted @ 2011-12-07 18:51 顿金 阅读(179) 评论(0) 推荐(0)
摘要: private void FindAllFiles(string fileDirectory){ DirectoryInfo diSource = new DirectoryInfo(fileDirectory); FileSystemInfo[] fsi = diSource.GetFileSys... 阅读全文
posted @ 2011-12-05 18:36 顿金 阅读(236) 评论(0) 推荐(0)
摘要: /// 转全角的函数(SBC case) /// ///任意字符串 ///全角字符串 /// ///全角空格为12288,半角空格为32 ///其他字符半角(33-126)与全角(65281-65374)的对应关系是:均相差65248 /// public static String ToSBC(... 阅读全文
posted @ 2011-12-05 11:25 顿金 阅读(166) 评论(0) 推荐(0)
摘要: TASKKILL /F /PID 1230TASKKILL /F /IM intellitrace.exe @pause ::暂停注意编码格式应为:ANSI用代码生成的话用:Encoding.Default 阅读全文
posted @ 2011-12-01 19:25 顿金 阅读(109) 评论(0) 推荐(0)