用Reflector查看时,发现这个方法看不到源码---------------------------
.NET Reflector
---------------------------
The member is not loaded or may be hidden due to your visibility settings.
---------------------------
确定
---------------------------
但在vs里看定义又没什么特别的 //
// Summary:
// Removes all characters from the current System.Text.StringBuilder instance.
//
// Returns:
// An object whose System.Text.StringBuilder.Length is 0 (zero).
public StringBuilder Clear();
.NET Reflector
---------------------------
The member is not loaded or may be hidden due to your visibility settings.
---------------------------
确定
---------------------------
但在vs里看定义又没什么特别的 //
// Summary:
// Removes all characters from the current System.Text.StringBuilder instance.
//
// Returns:
// An object whose System.Text.StringBuilder.Length is 0 (zero).
public StringBuilder Clear();
public StringBuilder Clear()
{
this.Length = 0;
return this;
}