Actually you can not convert it, since StringBuilder is not a scalar type.
You can create a stringbuilder instance that is initiated with your string. (
MSDN[
^])
Stringbuilder sb = new StringBuilder(YourStringVariable)
Supposing that txtresname is the field you want to be a stringbuilder, see following:
class myclass
{
private StringBuilder txtresname = new StringBuilder();
public string name
{
get
{
return this.txtresname.ToString();
}
set
{
this.txtresname.Clear;
this.txtresname.Append(value);
}
}
}