~Roxy's Blog~

Easy come,easy go~

2009年12月28日

C# Dictionary 终极使用方法(转)

摘要: 查看文章using System; using System.Collections.Generic; class DictionaryDemo { static void Main(string[] args) { DictionaryDemo001(); Console.ReadLine(); DictionaryDemo002(); Console.ReadLine(); Dic... 阅读全文

posted @ 2009-12-28 13:30 Roxy_sy 阅读(240) 评论(0) 推荐(0) 编辑
C# Dictionary 泛型字典集合(转)

摘要: 泛型最常见的用途是泛型集合,命名空间System.Collections.Generic 中包含了一些基于泛型的集合类,使用泛型集合类可以提供更高的类型安全性,还有更高的性能,避免了非泛型集合的重复的装箱和拆箱。 很多非泛型集合类都有对应的泛型集合类,下面是常用的非泛型集合类以及对应的泛型集合类:非泛型集合类 泛型集合类 ArrayList List<T> HashTable DIc... 阅读全文

posted @ 2009-12-28 13:27 Roxy_sy 阅读(581) 评论(0) 推荐(0) 编辑

2008年8月3日

在线学习网站技术

摘要: http://www.blabla.cn/内容还不错。 阅读全文

posted @ 2008-08-03 17:18 Roxy_sy 阅读(149) 评论(0) 推荐(0) 编辑

2008年1月10日

正则表达式30分钟入门(转)

摘要: 下载地址:/Files/Roxy--sy/Z.rar 阅读全文

posted @ 2008-01-10 15:00 Roxy_sy 阅读(141) 评论(0) 推荐(0) 编辑
DataGridView导出Excel(Easy)

摘要: 1privatevoidExportExcel(System.Data.DataTableds,stringstrExcelFileName)2{3objectobjOpt=Missing.Value;4Excel.Applicationexcel=newExcel.Application();5excel.Visible=true;6_Workbookwkb=excel.Workbooks.Ad... 阅读全文

posted @ 2008-01-10 14:43 Roxy_sy 阅读(2091) 评论(0) 推荐(0) 编辑

2007年11月15日

复合表头(1)

摘要: 以下为*.aspx的前台页的代码.后台的CS文件的绑定只需绑定DataList的绑定源就可以了~CodeCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1<!--以下为测试2<asp:DataListID="DataList2"runat=... 阅读全文

posted @ 2007-11-15 13:12 Roxy_sy 阅读(174) 评论(0) 推荐(0) 编辑

2007年9月30日

获取文件夹大小的方法 ASP.NET

摘要: 以下内容为转载1publiclongGetDirectoryLength(stringdirPath){2if(!Directory.Exists(dirPath))3return0;4longlen=0;5DirectoryInfodi=newDirectoryInfo(dirPath);6foreach(FileInfofiindi.GetFiles()){7len+=fi.Length;8}... 阅读全文

posted @ 2007-09-30 15:43 Roxy_sy 阅读(697) 评论(0) 推荐(0) 编辑

2007年7月28日

C#切换输入法代码段

摘要: //需要引用System.Windows.Forms名称空间stringlanguageName="五笔";//查找第一个五笔输入法foreach(InputLanguagelinInputLanguage.InstalledInputLanguages){if(l.LayoutName.IndexOf(languageName)>=0){InputLanguage.CurrentInput... 阅读全文

posted @ 2007-07-28 10:03 Roxy_sy 阅读(1688) 评论(1) 推荐(1) 编辑
C#检查 Windows 版本

摘要: 如何:使用 Visual C# .NET 检查 Windows 版本 (Q304283) -------------------------------------------------------------------------------- 本文讨论的内容属于: Microsoft Visual C# .NET (2002) -------------------------------... 阅读全文

posted @ 2007-07-28 10:00 Roxy_sy 阅读(853) 评论(0) 推荐(0) 编辑
Send Email C#

摘要: 1/**////<summary>2///发送Email(带验证,采用微软新推荐的方式)3///</summary>4///<paramname="strTo">收件Email</param>5///<paramname="strCc">抄送Email</param>6///<paramname="strSubject"... 阅读全文

posted @ 2007-07-28 09:29 Roxy_sy 阅读(479) 评论(0) 推荐(0) 编辑