﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>博客园-阿军-最新评论</title><link>http://www.cnblogs.com/lijun198504/CommentsRSS.aspx</link><description>有志者，立长志。无志者，常立志。</description><language>zh-cn</language><pubDate>Wed, 24 Mar 2010 07:13:33 GMT</pubDate><lastBuildDate>Wed, 24 Mar 2010 07:13:33 GMT</lastBuildDate><generator>cnblogs</generator><item><title>Re:《软件开发性能优化系列》目录</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/02/1648503.html#1759324</link><dc:creator>TBag</dc:creator><author>TBag</author><pubDate>Tue, 02 Feb 2010 10:01:00 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/02/1648503.html#1759324</guid><description><![CDATA[很期待的<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">TBag</a> 2010-02-02 18:01 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/02/1648503.html#1759324#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之类型系统</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758704</link><dc:creator>Prime Li</dc:creator><author>Prime Li</author><pubDate>Mon, 01 Feb 2010 11:18:37 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758704</guid><description><![CDATA[[quote]残香恨：
&quot;方法中的局部变量不是从堆而是从栈上分配&quot;
余以为这句不严谨
局部变量的分配还是要看相应的类型吧？
如果是引用类型，对象还是在堆上分配，只是引用在栈上。[/quote]
是啊，楼主应该用词严谨一下，否则很容易误导群众的。建议要有出处。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Prime Li</a> 2010-02-01 19:18 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758704#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之C#语言垃圾回收</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1651729.html#1758449</link><dc:creator>xuerr</dc:creator><author>xuerr</author><pubDate>Mon, 01 Feb 2010 07:00:52 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1651729.html#1758449</guid><description><![CDATA[不要使用空析构函数

如果用了空析构函数，GC在回收这个对象时，会调用Finalize，从而使对象重新被引用，该对象也会进会GC的下一代，延长了该对象在内存中的存时间，

析构函好像在2.0后改叫终结器了... <br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">xuerr</a> 2010-02-01 15:00 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1651729.html#1758449#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758425</link><dc:creator>xuerr</dc:creator><author>xuerr</author><pubDate>Mon, 01 Feb 2010 06:37:00 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758425</guid><description><![CDATA[C#在编译时会将程序集中声明的所有字符串常量放到保留池中（intern pool），相同常量不会重复分配

以前不知道竟是这样的，

<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">xuerr</a> 2010-02-01 14:37 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758425#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之类型系统</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758273</link><dc:creator>残香恨</dc:creator><author>残香恨</author><pubDate>Mon, 01 Feb 2010 04:02:13 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758273</guid><description><![CDATA[&quot;方法中的局部变量不是从堆而是从栈上分配&quot;
余以为这句不严谨
局部变量的分配还是要看相应的类型吧？
如果是引用类型，对象还是在堆上分配，只是引用在栈上。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">残香恨</a> 2010-02-01 12:02 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758273#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之Sql性能优化(二)</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758218</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Mon, 01 Feb 2010 03:05:15 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758218</guid><description><![CDATA[@老达
谢谢！<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-02-01 11:05 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758218#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758207</link><dc:creator>JinweiLee</dc:creator><author>JinweiLee</author><pubDate>Mon, 01 Feb 2010 02:54:06 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758207</guid><description><![CDATA[string.format();<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">JinweiLee</a> 2010-02-01 10:54 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1654460.html#1758207#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之Sql性能优化(二)</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758204</link><dc:creator>老达</dc:creator><author>老达</author><pubDate>Mon, 01 Feb 2010 02:51:14 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758204</guid><description><![CDATA[SET NOCOUNT ON;

可以减少网络传输数据量，不会影响到ExecuteNonQuery的或者受影响行数的获取，可以放心使用。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">老达</a> 2010-02-01 10:51 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1650483.html#1758204#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之类型系统</title><link>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758106</link><dc:creator>Jeffrey Zhao</dc:creator><author>Jeffrey Zhao</author><pubDate>Mon, 01 Feb 2010 01:47:17 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758106</guid><description><![CDATA[[quote]避免无意义的变量初始化动作[/quote]
我在想，这个虽然看上去多余，但对于性能应该也不会有影响吧。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Jeffrey Zhao</a> 2010-02-01 09:47 <a href="http://www.cnblogs.com/lijun198504/archive/2010/02/01/1660739.html#1758106#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753289</link><dc:creator>编写人生</dc:creator><author>编写人生</author><pubDate>Sun, 24 Jan 2010 13:07:40 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753289</guid><description><![CDATA[补充一下，我的环境是：VS2010 .net 4.0 DEBUG，其他版本我没有测试。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">编写人生</a> 2010-01-24 21:07 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753289#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753287</link><dc:creator>编写人生</dc:creator><author>编写人生</author><pubDate>Sun, 24 Jan 2010 13:05:33 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753287</guid><description><![CDATA[我按照你的意思写了一个简单的函数：
[code=csharp]
        public string Add(string a, string b,string c)
        {
            return a + b + c;
        }
[/code]

最后我反编译程序，使用IL方式查看：
[code=csharp]
.method public hidebysig instance string Add(string a, string b, string c) cil managed
{
    .maxstack 3
    .locals init (
        [0] string CS$1$0000)
    L_0000: nop 
    L_0001: ldarg.1 
    L_0002: ldarg.2 
    L_0003: ldarg.3 
    L_0004: call string [mscorlib]System.String::Concat(string, string, string)
    L_0009: stloc.0 
    L_000a: br.s L_000c
    L_000c: ldloc.0 
    L_000d: ret 
}

 

[/code]

注意L_0004位置，的确是调用了string.Concat方法，并没有常量一说<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">编写人生</a> 2010-01-24 21:05 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/24/1654460.html#1753287#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752904</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 09:48:46 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752904</guid><description><![CDATA[@Prime Li
首先非常感谢您的探讨，能一起探讨，我非常高兴。
1、使用String.Length==0的条件是知道string不为null的条件
我做过一个测试：
a)、str==&quot;&quot;
b)、str==string.Empty
c)、string.IsNullOrEmpty(str)
d)、str.Length == 0
效率是依次递增的
2、首先，您的建议非常好，但是我不知道String.CompareOrdinal()比Campare()快3-4倍您有没有做过测试。我有时间的话，测试一下，不是怀疑你，只是实践是检验真理的最好方法
3、我同意你的看法<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 17:48 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752904#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752903</link><dc:creator>朱才</dc:creator><author>朱才</author><pubDate>Sat, 23 Jan 2010 09:40:55 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752903</guid><description><![CDATA[晕。。。楼上跟我说的差不多，我慢了

但对于楼上的第三点，显然跟楼主的意思不同。
事实上，用+的时候，如果+号两边都是常量，如：
string str = &quot;a&quot;+&quot;b&quot;;
则编译后会是string str = &quot;ab&quot;;
如果+号其中一边不是常量，则会编译成string.Concat方法的调用，这个是楼主想表达的，如：
string str = str1 + str2 + str3; // 假设3个都不是常量
编译后会是：
string str = String.Concat(str1,str2,str3)
而若写成：
string str = str1 + str2;
string str += str3;
则会出现str1+str2产生的中间对象，是不必要的，这种写法不被推荐<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">朱才</a> 2010-01-23 17:40 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752903#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752900</link><dc:creator>朱才</dc:creator><author>朱才</author><pubDate>Sat, 23 Jan 2010 09:32:47 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752900</guid><description><![CDATA[1. 可以认为string===System.String，(编译后都是System.String)，没什么效率差别

2. 文中使用String.Compare的地方可以使用String.Equals

3. str.Length == 0没考虑null的情况，通常建议使用string.IsNullOrEmpty(str)<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">朱才</a> 2010-01-23 17:32 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752900#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752895</link><dc:creator>Prime Li</dc:creator><author>Prime Li</author><pubDate>Sat, 23 Jan 2010 09:22:04 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752895</guid><description><![CDATA[@军军
规范那回复不是说给你听的，是反驳老吉的。
至于文章内容
1：我不清楚为何不用String.IsNullOrEmpty()方法，而要用String.Length==0？
2：Campare虽然高效，但其函数的意义和Equal还是有区别的。从你的这个方法来看，目的是判断是否相等，而不是判断2个字符串谁大谁小，因此用bool Equals(string value,StringComparison comparisonType)比较合适。如果你非讲究效率，在区分大小写的情况下，String.CompareOrdinal()比Campare()快3-4倍。
3：String str =  str1 + str2 + str3 + str4; 分配一次，这个是有前提条件的。条件就是strxxx是静态值，也就是已经写好的字符串，比如 string str = &quot;A&quot;+ &quot;B&quot; + &quot;C&quot;，这样编译时候str=&quot;ABC&quot;。
而在下面语句中，由于str1,str2在编译时不确定，因此str的“=”操作可不是执行一次，而是三次。
[code=csharp]
public string Output(string str1, string str2, string str3, string str4)
{
    string str = str1 + str2 + str3 + str4;
    return str;
}
[/code]
所以我说那个算术表达式是有条件的。你的那句只在常量条件下适用。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Prime Li</a> 2010-01-23 17:22 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752895#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752816</link><dc:creator>木鱼</dc:creator><author>木鱼</author><pubDate>Sat, 23 Jan 2010 06:56:19 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752816</guid><description><![CDATA[[quote]Float：
这些优化的特性是否在vb.net中同样？？还是只限C#？
比如你文中的使用StringBuilder做字符串连接、避免不必要的调用ToUpper或ToLower方法、最快的空串比较方法 这些是否在VB.NET中也同样尊循这种规则？[/quote]

针对.Net平台的语言都适用。

另外string和String其实都一样，只是规范中建议用别名而已，并没有不同。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">木鱼</a> 2010-01-23 14:56 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752816#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752810</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 06:17:13 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752810</guid><description><![CDATA[StringBuilder 类是属于.NET Framework 类库中的的。所以也同样适用<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 14:17 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752810#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752801</link><dc:creator>Float</dc:creator><author>Float</author><pubDate>Sat, 23 Jan 2010 05:59:53 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752801</guid><description><![CDATA[这些优化的特性是否在vb.net中同样？？还是只限C#？
比如你文中的使用StringBuilder做字符串连接、避免不必要的调用ToUpper或ToLower方法、最快的空串比较方法 这些是否在VB.NET中也同样尊循这种规则？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Float</a> 2010-01-23 13:59 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752801#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752772</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 04:24:49 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752772</guid><description><![CDATA[@Nero.Pang
定义的时候将str赋空值，这里指的是空值。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 12:24 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752772#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752769</link><dc:creator>Nero.Pang</dc:creator><author>Nero.Pang</author><pubDate>Sat, 23 Jan 2010 04:15:41 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752769</guid><description><![CDATA[if(str.Length == 0)

=================================
这句，=null的时候程序就挂了<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Nero.Pang</a> 2010-01-23 12:15 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752769#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752747</link><dc:creator>works guo</dc:creator><author>works guo</author><pubDate>Sat, 23 Jan 2010 03:20:34 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752747</guid><description><![CDATA[顶<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">works guo</a> 2010-01-23 11:20 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752747#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752732</link><dc:creator>飞林沙</dc:creator><author>飞林沙</author><pubDate>Sat, 23 Jan 2010 03:00:44 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752732</guid><description><![CDATA[我的建议是如果是声明一个字符串的话用string，因为这样比较像一个类型。如果是使用字符串的静态方法，那么最好用String,如String.Concat<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">飞林沙</a> 2010-01-23 11:00 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752732#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752730</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 02:59:41 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752730</guid><description><![CDATA[@Prime Li
您好，本文主要目的是能够提高软件的效率。对于你说会让人感觉奇怪，这个是次要的，int.parse()也是方法。只是从效率上来考虑。“另外，文中有几处没说明前提的结论”——请指出<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 10:59 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752730#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752717</link><dc:creator>Prime Li</dc:creator><author>Prime Li</author><pubDate>Sat, 23 Jan 2010 02:36:56 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752717</guid><description><![CDATA[另外，文中有几处没说明前提的结论。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Prime Li</a> 2010-01-23 10:36 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752717#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752714</link><dc:creator>Prime Li</dc:creator><author>Prime Li</author><pubDate>Sat, 23 Jan 2010 02:31:32 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752714</guid><description><![CDATA[@吉日嘎拉&amp;gt;不仅权限设计
你说错了。在编码规范上，基本类型（有c#关键字的），声明时要用关键字，比如int i = 0, string s = String.Empty
而在调用其方法时候，要用大写的类名。比如String.IsNullOrEmpty(s)

为什么呢？因为使用关键字方法string.IsNullOrEmpty(s)，会很奇怪，让人感到怎么关键字也有方法的？和我们一般理解的调用  类.静态方法 有出入。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">Prime Li</a> 2010-01-23 10:31 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752714#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752709</link><dc:creator>wrafe</dc:creator><author>wrafe</author><pubDate>Sat, 23 Jan 2010 02:26:39 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752709</guid><description><![CDATA[代码代码一下嘛 ！嘿！
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">wrafe</a> 2010-01-23 10:26 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752709#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752695</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 01:55:20 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752695</guid><description><![CDATA[@oec2003
？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 09:55 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752695#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752692</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 01:54:26 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752692</guid><description><![CDATA[@搏击的小船
谢谢
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 09:54 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752692#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752691</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Sat, 23 Jan 2010 01:54:11 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752691</guid><description><![CDATA[@崔浩
原作。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-23 09:54 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752691#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752665</link><dc:creator>oec2003</dc:creator><author>oec2003</author><pubDate>Sat, 23 Jan 2010 00:26:26 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752665</guid><description><![CDATA[net设计规范中建议使用c＃中的别名，而在clr via c＃框架设计一书中建议用框架中定义的类名。我平时的书写习惯是前者，个人认为都是可以的，保持一致就行<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">oec2003</a> 2010-01-23 08:26 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752665#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752647</link><dc:creator>搏击的小船</dc:creator><author>搏击的小船</author><pubDate>Fri, 22 Jan 2010 17:05:10 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752647</guid><description><![CDATA[支持楼主一直写下去 ，不要怕别人拍砖<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">搏击的小船</a> 2010-01-23 01:05 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752647#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之Sql性能优化(一)</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1649960.html#1752646</link><dc:creator>搏击的小船</dc:creator><author>搏击的小船</author><pubDate>Fri, 22 Jan 2010 16:55:23 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1649960.html#1752646</guid><description><![CDATA[再来支持一下楼主，不错<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">搏击的小船</a> 2010-01-23 00:55 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1649960.html#1752646#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752631</link><dc:creator>搏击的小船</dc:creator><author>搏击的小船</author><pubDate>Fri, 22 Jan 2010 16:11:20 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752631</guid><description><![CDATA[好文章<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">搏击的小船</a> 2010-01-23 00:11 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/23/1654460.html#1752631#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752618</link><dc:creator>崔浩</dc:creator><author>崔浩</author><pubDate>Fri, 22 Jan 2010 15:43:23 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752618</guid><description><![CDATA[这是MSDN里讲的吧，我听过<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">崔浩</a> 2010-01-22 23:43 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752618#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752604</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Fri, 22 Jan 2010 15:10:23 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752604</guid><description><![CDATA[@吉日嘎拉&amp;gt;不仅权限设计
谢谢，我研究一下看看。
<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-22 23:10 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752604#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752592</link><dc:creator>吉日嘎拉&amp;gt;不仅权限设计</dc:creator><author>吉日嘎拉&amp;gt;不仅权限设计</author><pubDate>Fri, 22 Jan 2010 14:37:22 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752592</guid><description><![CDATA[@军军

微软的 StyleCop 代码检查工具中建议写成 string ，应该微软的技术人员不大容易犯错吧?

<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">吉日嘎拉&gt;不仅权限设计</a> 2010-01-22 22:37 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752592#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752590</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Fri, 22 Jan 2010 14:30:40 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752590</guid><description><![CDATA[@吉日嘎拉&amp;gt;不仅权限设计
感谢您的建议，我记得string是C#中的类，String是Framework中类，使用string还要编译成String。我一直是这样理解的，不知道这样理解是否正确。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-22 22:30 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752590#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之String操作</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752589</link><dc:creator>吉日嘎拉&amp;gt;不仅权限设计</dc:creator><author>吉日嘎拉&amp;gt;不仅权限设计</author><pubDate>Fri, 22 Jan 2010 14:24:56 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752589</guid><description><![CDATA[也最好写成 
string,不要用String

  <br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">吉日嘎拉&gt;不仅权限设计</a> 2010-01-22 22:24 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/22/1654460.html#1752589#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之Sql性能优化(一)</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751454</link><dc:creator>军军</dc:creator><author>军军</author><pubDate>Thu, 21 Jan 2010 05:48:01 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751454</guid><description><![CDATA[@刀仔
sql server2005自带的。<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">军军</a> 2010-01-21 13:48 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751454#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Re:《软件开发性能优化系列》之Sql性能优化(一)</title><link>http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751448</link><dc:creator>刀仔</dc:creator><author>刀仔</author><pubDate>Thu, 21 Jan 2010 05:41:34 GMT</pubDate><guid>http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751448</guid><description><![CDATA[楼主的SQLServer2005的优化报告是用的什么工具？<br><br><div align=right><a style="text-decoration:none;" href="http://www.cnblogs.com/lijun198504/" target="_blank">刀仔</a> 2010-01-21 13:41 <a href="http://www.cnblogs.com/lijun198504/archive/2010/01/21/1649960.html#1751448#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>
