C# Programming
05-18-2009, 09:43 AM
hi all,
i have an object where some data store as
foreach(object obj in listbox.items)
{
MessageBox.Show(obj.ToString());
}
display as
{SubjectId = 1,SubjectName =Art1}
how can get only SubjectId from this object.
thanks.
i have an object where some data store as
foreach(object obj in listbox.items)
{
MessageBox.Show(obj.ToString());
}
display as
{SubjectId = 1,SubjectName =Art1}
how can get only SubjectId from this object.
thanks.