Hypothetically it\'d be handy for me to do this:
foo.GetColumnValues(dm.mainColumn, int) foo.GetColumnValues(dm.mainColumn, string)
where t
foo.GetColumnValues(dm.mainColumn, typeof(string))
Alternatively, you could use a generic method:
public void GetColumnValues(object mainColumn) { GetColumnValues(mainColumn, typeof(T)); }
and you could then use it like:
foo.GetColumnValues(dm.mainColumn);