You want to use p.PropertyType:
Code:
foreach (DataRow r in dtIT.Rows)
{
foreach (PropertyInfo p in t.GetProperties())
{
Type pType = p.PropertyType;
//assign any matching column names to object properties
Leave a comment: