❔ Infer the second generic type from input data
I am wondering if its possible to write the following code in some way that it works like I want it to.
My goal is to specify a class and an argument. The function should then create the class and pass the argument to it.
6 Replies
ur method can only accept 2 generic arguments, create another one that accepts a single generic argument
How would one do that when the first generic arguemtn requires the second?
void Execute<v<arg>>(arg argument) is not valid from my understanding
is there a reason u dont want to pass the 2nd generic argument?
Partly to make it look neater, but I am also really curious if its possible
not afaik
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.