❔ Use Variable as Type
Hiya 
I'm needing some help with a WinForms Project. I want to take an object from a list and convert that object's properties to an array. The object type, however, can vary. I have a form that asks for what type the user wants, and I want to pass that decision into my code as a variable so that the correct object type is loaded. I've been using dynamic, but it mistakes one class for another, and dynamic is ugly anyway. Attached the code for that bit with dynamic in. Thanks!
I'm needing some help with a WinForms Project. I want to take an object from a list and convert that object's properties to an array. The object type, however, can vary. I have a form that asks for what type the user wants, and I want to pass that decision into my code as a variable so that the correct object type is loaded. I've been using dynamic, but it mistakes one class for another, and dynamic is ugly anyway. Attached the code for that bit with dynamic in. Thanks!
