<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom"><title type="text">博客园_leeolevis_分类_储物箱</title><id>http://feed.cnblogs.com/blog/u/51427/category/315265/rss</id><updated>2012-06-03T19:44:05Z</updated><generator>feed.cnblogs.com</generator><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/category/315265.html"/><link rel="self" type="application/atom+xml" href="http://feed.cnblogs.com/blog/u/51427/category/315265/rss"/><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/04/18/2019917.html</id><title type="text">高效byte[]和string互转的方法</title><summary type="text">publicstaticclassUtils{///&lt;summary&gt;///普通方法——字节数组转字符串，最容易想到///&lt;/summary&gt;///&lt;paramname="input"&gt;&lt;/param&gt;///&lt;returns&gt;&lt;/returns&gt;publicstaticstringBytesToString(byte[]input){StringBuildersb=newStringBuilder();foreach(bytebininput){sb.Append(b.ToString("X2</summary><published>2011-04-18T07:31:00Z</published><updated>2011-04-18T07:31:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/04/18/2019917.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/04/18/2019917.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968370.html</id><title type="text">NET 4，3，2，1其实什么也没有变</title><summary type="text">最近,身边的不少程序员抱怨NET的变化太快了,觉得跟不上变化,心情很沮丧,有的甚至有放弃编程这个行业的想法. 我这篇文章的主题是[NET 4,3,2,1其实什么也没有变],贯穿本文的例子是如何动态调用方法.本文的目的不是驳斥NET升级的无意义,只是想从一个小的技术点说明变与不变是相对的.当一个新技术出现后,了解它出现的意义,了解它的前身,了解它的后续,比盲目的追从要有用的多. 下面看例子,(注:下面的一组例子只演示了从NET1.0 到NET4.0 中动态调用方法的常用方式,在这里我们不谈性能) NET4.0 中用dynamic实现动态调用方法 在NET4.0 中可以用dynamic 定义一个对</summary><published>2011-03-01T13:20:00Z</published><updated>2011-03-01T13:20:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968370.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/03/01/1968370.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2011/02/12/1951897.html</id><title type="text">访问chm文件出现“已取消到该网页的导航”的解决方法</title><summary type="text">问题描述：访问chm文件出现“已取消到该网页的导航”解决方法：右键点击chm文件--&gt;属性--&gt;解除锁定。重新打开文件即可。分享两个常用的图书下载地址：http://www.ppurl.com/ http://www.wowebook.com/</summary><published>2011-02-12T02:34:00Z</published><updated>2011-02-12T02:34:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2011/02/12/1951897.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2011/02/12/1951897.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911579.html</id><title type="text">分享一个对象序列化为XML和反序列化的扩展方法</title><summary type="text">Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt; publicstaticclassXmlSerializerExtensions{#regionPrivatefieldsprivatestaticreadonlyDictionary&lt;RuntimeTypeHandle,XmlSerializer&gt;ms_serializers=newDictionary&lt;RuntimeTypeHandle,XmlSerializer&gt;</summary><published>2010-12-20T08:40:00Z</published><updated>2010-12-20T08:40:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911579.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911579.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911551.html</id><title type="text">将Excel数据批量插入数据库的常用方法</title><summary type="text">一、结合EntityFramework进行的简单实现 staticvoidLoadExcel(){stringfilePath=@"E:\Excel目录\";LoadFileTree(filePath);}staticvoidLoadFileTree(stringfilePath){stringconnString="server=localhost;uid=sa;pwd=qaz~123;database=MedicalSearch";System.IO.DirectoryInfodi=newDirectoryInfo(filePath);var_que</summary><published>2010-12-20T08:25:00Z</published><updated>2010-12-20T08:25:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911551.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/12/20/1911551.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/12/08/1900050.html</id><title type="text">Quartz.NET作业调度框架详解</title><summary type="text">Quartz.NET是一个开源的作业调度框架，是OpenSymphony 的 Quartz API的.NET移植，它用C#写成，可用于winform和asp.net应用中。它提供了巨大的灵活性而不牺牲简单性。你能够用它来为执行一个作业而创建简单的或复杂的调度。它有很多特征，如：数据库支持，集群，插件，支持cron-like表达式等等。你曾经需要应用执行一个任务吗？这个任务每天或每周星期二晚上11：30，或许仅仅每个月的最后一天执行。一个自动执行而无须干预的任务在执行过程中如果发生一个严重错误，应用能够知到其执行失败并尝试重新执行吗？你和你的团队是用.NET编程吗？如果这些问题中任何一个你回答是</summary><published>2010-12-08T03:56:00Z</published><updated>2010-12-08T03:56:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/12/08/1900050.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/12/08/1900050.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/11/29/1891342.html</id><title type="text">如何生成密钥文件Snk</title><summary type="text">在.net中，snk用于给应用程序集签名，保证应用程序集的有效性。强命名程序集的缘由： 目前Windows中出现的DLL Hell问题（两个不同的公司可能开发处具有相同名称的程序集，如果将相同名称的程序 集放置到同一个目录下，则会出现程序集覆盖现象，最后安装的程序集会覆盖前面的程序集，从而可能导致应用序不能正常运行）。由此看来，仅靠名称来区分程序 集是不足够的。CLR采取了强命名程序集的方式来唯一的表示程序集。强命名程序集包含四个标识：名称，版本号，语言文化标识和一个共有/私有密钥对。两种 程序集/两种部署方式：.Net支持两种程序集：弱命名程序集和强命名程序集（注：.Net框架中没有弱命名.</summary><published>2010-11-29T10:28:00Z</published><updated>2010-11-29T10:28:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/11/29/1891342.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/11/29/1891342.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/09/12/1824232.html</id><title type="text">.net framework加密方法</title><summary type="text">Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(stringpassword,stringpasswordFormat);</summary><published>2010-09-11T16:43:00Z</published><updated>2010-09-11T16:43:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/09/12/1824232.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/09/12/1824232.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/08/24/1807693.html</id><title type="text">利用LINQ读行文本&amp;amp;去重复</title><summary type="text">Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;1staticprivatevoidGetOneText(stringfilePath)2{3using(StreamReadersr=newStreamReader(filePath,Encoding.GetEncoding("gb2312")))4{5List&lt;string&gt;listQuery=newList&lt;string&gt;();6for(stri</summary><published>2010-08-24T15:24:00Z</published><updated>2010-08-24T15:24:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/08/24/1807693.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/08/24/1807693.html"/><content type="html"/></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2010/01/22/1632695.html</id><title type="text">C# 基础记录记录</title><summary type="text">[] 特征：针对特定类型、固定长度的Array 特征：针对任意类型、固定长度的List 特征：针对特定类型、任意长度的ArrryList 特征：针对任意类型、任意长度的 C# 数组中每个元素的类型必须相同 C# 数组的下标是从 0 开始一维数组 int[] arr = {1, 2, 3};多维数组 int[,] arr = { {1, 11}, {2, 12}, {3, 13} };交错数组 int[][][] arr = new int[1][][];GridView 特征：一行一条记录，就像新闻列表一样；带分页功能DataList 特征：一行可以有多条记录，就像图片列表一样；分页功能需要手</summary><published>2010-01-22T11:28:00Z</published><updated>2010-01-22T11:28:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2010/01/22/1632695.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2010/01/22/1632695.html"/><content type="text">[] 特征：针对特定类型、固定长度的Array 特征：针对任意类型、固定长度的List 特征：针对特定类型、任意长度的ArrryList 特征：针对任意类型、任意长度的 C# 数组中每个元素的类型必须相同 C# 数组的下标是从 0 开始一维数组 int[] arr = {1, 2, 3};多维数组 int[,] arr = { {1, 11}, {2, 12}, {3, 13} };交错数组 int[][][] arr = new int[1][][];GridView 特征：一行一条记录，就像新闻列表一样；带分页功能DataList 特征：一行可以有多条记录，就像图片列表一样；分页功能需要手</content></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2009/12/16/1625853.html</id><title type="text">【小菜日志】用C#完成Allen Lee&amp;#39;s Magic大虾推荐的F#作业&amp;amp;F#学习中</title><summary type="text">人Ren都是达西，F#学习中，希望可以早日写出自己的F#版本，做个记号推荐地址：http://www.cnblogs.com/allenlooplee/archive/2009/03/26/1421960.html原文地址：http://blogs.msdn.com/jomo_fisher/archive/2007/11/17/tight-code-a-puzzle-in-f.aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;publi</summary><published>2009-12-16T09:38:00Z</published><updated>2009-12-16T09:38:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2009/12/16/1625853.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2009/12/16/1625853.html"/><content type="text">人Ren都是达西，F#学习中，希望可以早日写出自己的F#版本，做个记号推荐地址：http://www.cnblogs.com/allenlooplee/archive/2009/03/26/1421960.html原文地址：http://blogs.msdn.com/jomo_fisher/archive/2007/11/17/tight-code-a-puzzle-in-f.aspxCode highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;publi</content></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2009/12/15/1624941.html</id><title type="text">【小菜日志】用LINQ的DataContext.Log 属性来记录LINQ TO语句操作日志</title><summary type="text">大家知道，平时我们追踪SQL语句的执行时都可以用SQLProfiler，不过使用其他数据库操作就不得而知了其实针对LINQ TO MORE 我们可以使用LINQ的DataContext.Log属性来查看或者记录LINQ TO 数据库的操作日志（貌似只能针对可以实例化的数据库连接类型，像LINQ TO XML这种除外），很菜很简单的东西，所以直接贴代码了Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;1publicActionResultVie</summary><published>2009-12-15T08:55:00Z</published><updated>2009-12-15T08:55:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2009/12/15/1624941.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2009/12/15/1624941.html"/><content type="text">大家知道，平时我们追踪SQL语句的执行时都可以用SQLProfiler，不过使用其他数据库操作就不得而知了其实针对LINQ TO MORE 我们可以使用LINQ的DataContext.Log属性来查看或者记录LINQ TO 数据库的操作日志（貌似只能针对可以实例化的数据库连接类型，像LINQ TO XML这种除外），很菜很简单的东西，所以直接贴代码了Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--&gt;1publicActionResultVie</content></entry><entry><id>http://www.cnblogs.com/leeolevis/archive/2009/12/12/1622371.html</id><title type="text">Lambda表达式基本概述</title><summary type="text">Lambda表达式实际上是一个匿名函数。它包含表达式和语句，常用于创建委托或表达式目录树类型。所有Lambda表达式都是用Lambda运算符---------- =&gt;，该运算符读为“goesto”。Lambda运算符的左边是输入参数（可能没有），右边是表达式或语句块。Lambda表达式返回右边表达式的结果。其基本格式如下：(input paramenters)=&gt;expression其中，parameters是一个参数列表，在Lambda只有一个输入参数时可以不适用括号，否则括号是必须的。两个或更多输入参数由括在括号中的逗号分隔，如以下代码所示，包括两个参数x和y。（x,y）=&amp;g</summary><published>2009-12-12T02:51:00Z</published><updated>2009-12-12T02:51:00Z</updated><author><name>leeolevis</name><uri>http://www.cnblogs.com/leeolevis/</uri></author><link rel="alternate" href="http://www.cnblogs.com/leeolevis/archive/2009/12/12/1622371.html"/><link rel="alternate" type="text/html" href="http://www.cnblogs.com/leeolevis/archive/2009/12/12/1622371.html"/><content type="text">Lambda表达式实际上是一个匿名函数。它包含表达式和语句，常用于创建委托或表达式目录树类型。所有Lambda表达式都是用Lambda运算符---------- =&gt;，该运算符读为“goesto”。Lambda运算符的左边是输入参数（可能没有），右边是表达式或语句块。Lambda表达式返回右边表达式的结果。其基本格式如下：(input paramenters)=&gt;expression其中，parameters是一个参数列表，在Lambda只有一个输入参数时可以不适用括号，否则括号是必须的。两个或更多输入参数由括在括号中的逗号分隔，如以下代码所示，包括两个参数x和y。（x,y）=&amp;g</content></entry></feed>
