SyntaxFix
Write A Post
Hire A Developer
Questions
Use reflection
System.Reflection.PropertyInfo pi = item.GetType().GetProperty("name"); String name = (String)(pi.GetValue(item, null));