差点给微软骗了

今天装了个Visual C# 2005 Express Edition Beta1,用用发觉还挺方便的,里面加了Refactor功能和其他一些似曾相识的功能,不知是不是从Eclispe那里学回来的15.gif,手痒痒的在一个系统类名String上点了一下Go to definition,嘿,跳到一个源文件,显示这个类的定义源码,我眼睛睁得大大的,莫非微软给他的源码我看了?看看他是什么文件,System.String.cs(from metadata)!帅呆了!赶紧瞧瞧代码,一看,傻眼了,那些+号打开是注释!没有代码,只是定义。。。。。

None.gif namespace  System
ExpandedBlockStart.gifContractedBlock.gif
dot.gif {
ExpandedSubBlockStart.gifContractedSubBlock.gif    
/**//// <summary>Represents text as a series of Unicode characters.</summary>
ExpandedSubBlockEnd.gif    
/// <filterpriority>1</filterpriority>

InBlock.gif    [System.Reflection.DefaultMemberAttribute("Chars")]
InBlock.gif    
public sealed class String : System.IComparable, System.ICloneable, System.IConvertible, System.Collections.IEnumerable, System.IComparable<System.String>
ExpandedSubBlockStart.gifContractedSubBlock.gif    
dot.gif{
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>Returns a reference to this instance of <see cref="T:System.String" />.</summary>
InBlock.gif        
/// <returns>This instance of String.</returns>
ExpandedSubBlockEnd.gif        
/// <filterpriority>2</filterpriority>

InBlock.gif        public object Clone();
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>Compares substrings of two specified <see cref="T:System.String" /> objects.</summary>
InBlock.gif        
/// <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands.Value Meaning Less than zero The substring in strA is minus than the substring in strB. Zero The substrings are equal, or length is zero. Greater than zero The substring in strA is greater than the substring in strB. </returns>
InBlock.gif        
/// <param name="strB">The second <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="strA">The first <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="comparisonType">One of the <see cref="T:System.StringComparison" /> values. </param>
InBlock.gif        
/// <param name="length">The maximum number of characters in the substrings to compare. </param>
InBlock.gif        
/// <param name="indexA">The position of the substring within strA. </param>
InBlock.gif        
/// <param name="indexB">The position of the substring within strB. </param>
ExpandedSubBlockEnd.gif        
/// <filterpriority>1</filterpriority>

InBlock.gif        public static int Compare(string strA, int indexA, string strB, int indexB, int length, System.StringComparison comparisonType);
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>Compares substrings of two specified <see cref="T:System.String" /> objects, ignoring or honoring their case, and using culture-specific information to influence the comparison.</summary>
InBlock.gif        
/// <returns>An integer indicating the lexical relationship between the two comparands.Value Type Condition Less than zero The substring in strA is less than the substring in strB. Zero The substrings are equal, or length is zero. Greater than zero The substring in strA is greater than the substring in strB. </returns>
InBlock.gif        
/// <param name="culture"><see cref="T:System.Globalization.CultureInfo" /> object that supplies culture-specific comparison information. </param>
InBlock.gif        
/// <param name="strB">The second <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="strA">The first <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="ignoreCase"><see cref="T:System.Boolean" /> indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.) </param>
InBlock.gif        
/// <param name="length">The maximum number of characters in the substrings to compare. </param>
InBlock.gif        
/// <param name="indexA">The position of the substring within strA. </param>
InBlock.gif        
/// <param name="indexB">The position of the substring within the strB. </param>
ExpandedSubBlockEnd.gif        
/// <filterpriority>1</filterpriority>

InBlock.gif        public static int Compare(string strA, int indexA, string strB, int indexB, int length, bool ignoreCase, System.Globalization.CultureInfo culture);
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>Compares substrings of two specified <see cref="T:System.String" /> objects, ignoring or honoring their case.</summary>
InBlock.gif        
/// <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands.Value Type Condition Less than zero The substring in strA is less than the substring in strB. Zero The substrings are equal, or length is zero. Greater than zero The substring in strA is greater than the substring in strB. </returns>
InBlock.gif        
/// <param name="strB">The second <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="strA">The first <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="ignoreCase"><see cref="T:System.Boolean" /> indicating a case-sensitive or insensitive comparison. (true indicates a case-insensitive comparison.) </param>
InBlock.gif        
/// <param name="length">The maximum number of characters in the substrings to compare. </param>
InBlock.gif        
/// <param name="indexA">The position of the substring within strA. </param>
InBlock.gif        
/// <param name="indexB">The position of the substring within strB. </param>
ExpandedSubBlockEnd.gif        
/// <filterpriority>1</filterpriority>

InBlock.gif        public static int Compare(string strA, int indexA, string strB, int indexB, int length, bool ignoreCase);
ExpandedSubBlockStart.gifContractedSubBlock.gif        
/**//// <summary>Compares substrings of two specified <see cref="T:System.String" /> objects.</summary>
InBlock.gif        
/// <returns>A 32-bit signed integer indicating the lexical relationship between the two comparands.Value Meaning Less than zero The substring in strA is minus than the substring in strB. Zero The substrings are equal, or length is zero. Greater than zero The substring in strA is greater than the substring in strB. </returns>
InBlock.gif        
/// <param name="strB">The second <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="strA">The first <see cref="T:System.String" /></param>
InBlock.gif        
/// <param name="length">The maximum number of characters in the substrings to compare. </param>
InBlock.gif        
/// <param name="indexA">The position of the substring within strA. </param>
InBlock.gif        
/// <param name="indexB">The position of the substring within strB. </param>
ExpandedSubBlockEnd.gif        
/// <filterpriority>1</filterpriority>

InBlock.gif        public static int Compare(string strA, int indexA, string strB, int indexB, int length);

还以为他要赶上java了。。。16.gif

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值