You cannot directly assign a value to StringBuilder objects.
You have to use member function Append() to do the same.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace WindowsFormsApplication3
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
Hello a = new Hello();
a.aa = "string";
a.bb = "String";
a.cc.Append("SB")
}
}
public class Hello
{
public string aa;
public String bb;
StringBuilder cc = new StringBuilder();
}
}
Maybe this will work