List all properties and values of an object in C# 29-12-2015 11:45:15 C# / Reflection 0 Bookmark(s) 246 View(s) public void ListPropertyValues(object obj) { var type = obj.GetType(); foreach (var property in type.GetProperties(BindingFlags.Public | BindingFlags.Instance)) { Console.WriteLine("{0}: {1}", property, property.GetValue(obj)); } }