string如何转换成
StringBuilder

解决方案 »

  1.   

    Name  Description  
    StringBuilder ()  Initializes a new instance of the StringBuilder class. 
    Supported by the .NET Compact Framework. 
     
    StringBuilder (Int32)  Initializes a new instance of the StringBuilder class using the specified capacity. 
    Supported by the .NET Compact Framework. 
     
    StringBuilder (String)  Initializes a new instance of the StringBuilder class using the specified string. 
    Supported by the .NET Compact Framework. 
     
    StringBuilder (Int32, Int32)  Initializes a new instance of the StringBuilder class that starts with a specified capacity and can grow to a specified maximum. 
    Supported by the .NET Compact Framework. 
     
    StringBuilder (String, Int32)  Initializes a new instance of the StringBuilder class using the specified string and capacity. 
    Supported by the .NET Compact Framework. 
     
    StringBuilder (String, Int32, Int32, Int32)  Initializes a new instance of the StringBuilder class from the specified substring and capacity. 
    Supported by the .NET Compact Framework. In MSDN
     
      

  2.   

    string str="我是字符串";
    StringBuilder stb=new StringBuilder(str);//为转换
      

  3.   

    StringBuilder stb=new StringBuilder(str);//为转换