scac
✅ Get property from generic type?
I have a method with a generic type. Two objects of different classes may be passed to it. How do I access a property in these objects (it has the same name in both objs)? Been trying with reflection but I'm getting a
Object reference not set to an instance of an object. C# GetProperty()
17 replies