string[] colums = typeof(T).GetProperties().Select(c => c.Name).ToArray(); foreach (var col in colums) { var tc= typeof(C).GetProperties().Select(c => c.Name).ToArray(); var tp = col.GetType(); var value = typeof(T).GetProperty(col).GetValue(item, null) ?? string.Empty; }
System.Reflection.PropertyInfo propertyInfo = typeof(ObjectName).GetProperty("propertyName"); Type type = propertyInfo .PropertyType;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)