E-slacker
E-slacker
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
I see, thanks a lot for your time
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
oh well, there's absolutely no way to use generics in this case?
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Should I just use dynamic?
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Yes
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Given a Type object, how can i get its actual type?
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Oh
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Day1 implements IProblem<int>
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Oh yeah my bad
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
System.InvalidCastException: Unable to cast object of type 'Problems.Day1.Day1' to type 'Utils.IProblem`1[System.Type]
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
InvalidCastException
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
Type[] of different classes all implementing IProblem<>
26 replies
CC#
Created by E-slacker on 7/9/2023 in #help
❔ How to return a generic interface whose only parameter is determined on runtime?
I can't use new with a Assembly that I get on runtime, can I? What I want to do, basically, is to get all classes of the project that implement IProblem<> and call some of their methods
26 replies