Using Reflection to get property value for any object
I was tasked to build a method that would take in any object and a string that specifies the property to be returned. Let’s say we have a complex object as followed public class Company { public string Name { get; set; } public string ABN { get; set; } public int YearFounded { get; … [Read more…]