بازم سلام
جه چوری میشه اطلاعات یه hashtabel رو در یک list box نشون داد ؟(در #C)
به نظر شما کد زیر چه اشکالی داره که فقط نام برنامه ونام ساختار رو نشون می ده(عناصر به hashtable اضافه میشه اما نشون داده نمیشه)
البته symtabel نام ساختار استکد:
public Hashtable symhash=new Hashtable() ;
symtabel stable;
کد:
addsymtabel(token, "kkey", 1);
listBox1.Items.Add(stable );
بعد اجرا در list box نوشته می شه compiler --symtableکد:
public void addsymtabel(string nam, string type, byte num)
{
stable. symnam = nam;
stable .symtyp = type;
stable.symnum = num;
symhash.Add(stable.symnam, stable);
}