Get properties and values from unknown object
From the world of PHP I have decided to give C# a go. I’ve had a search but can’t seem to find the answer of how to do the equivalent to this. $object = new Object(); $vars = get_class_vars(get_class($object)); foreach($vars as $var) { doSomething($object->$var); } I basically have a List of an object. The object … Read more