public static IOxiteDataProvider GetInstance(this IDataProviderConfiguration dataProviderConfiguration)
{
 ....
}
红色的 this怎么理解?望高手指点。谢谢。 

解决方案 »

  1.   


    public static char GetFirstCH(this string str)
    {
     return str.Length>0?str[0]:null;
    }对string类型扩展一个名为GetFirstCH的方法  作用是返回首字符
    "this is a string".GetFirstCH();  结果是t
      

  2.   

    明白了。谢谢。
    http://cache.baidu.com/c?m=9d78d513d9851bf419fa940f1a67d5716a5f97153bc0a01e68d5e35fe3614c31317193be30511a10948522685be90f1efdf1456f2a5577f3cc96d5088afb8528588f246536419141658244f0d61565873d9058eba41beda7f33496a9d7d6c8542490155a&p=8d769a4597934ead0cf5d0351c&user=baidu