❔ Can I generalise this method?
Lets say I pass in "0,3,2" - I also want to pass in the Types of the Enusm I want to get them converted as. For example I split them into three different Enums, 0 being the category, 3 the subcategory and 2 a list item.
Any way to generalise this?
4 Replies
that enum method should have a non-generic overload
which takes the type as one of the arguments
if not, you can resolve the generic with reflection, but that's generally bad
this worked for me
Yeah, built it somewhat like that. Thanks!
Was this issue resolved? If so, run
/close
- otherwise I will mark this as stale and this post will be archived until there is new activity.