>PropertyInfo[] properties = typeof(SuperCollectionClass).GetProperties(); > >foreach (var property in properties) >{ > string TableName = property.Name; > > var Value = property.GetValue(, null); >} > >>
SuperCollectionClass sc = new SuperCollectionClass(); // You could use this instance instead : PropertyInfo[] p2 = sc.GetType().GetProperties(); PropertyInfo[] properties = typeof(SuperCollectionClass).GetProperties(); foreach (var property in properties) { string TableName = property.Name; var v = property.GetValue(sc, null); }