Get String from unknown object

  • Thread starter Thread starter Webgour
  • Start date Start date
W

Webgour

Hello,

I'm using the following

System.Collections.IEnumerator IEn =
((System.Collections.IEnumerable)DataSource).GetEnumerator();
while (IEn.MoveNext())
{
dr = m_contentDataTable.NewRow();
dr[0] = IEn.Current;
m_contentDataTable.Rows.Add(dr);
}

However I would like to get the content from the IEnumerator.Current as a
string, however I know what kind of object is assigned as Datasource....
Any ideas.
 
Back
Top