Original Post
With c# generics, I know it is possible to place constraints on the type argument, for example that it must implement a certain interface or inherit a certain class. Is the same thing possible in a static context? Can I require that the type that is passed offers a static method or property?
I know that this is possible with reflection, but maybe there's another way for this kind of problem.
I'm probably still used to c++ template, which work in a completely different manner.
I know that this is possible with reflection, but maybe there's another way for this kind of problem.
I'm probably still used to c++ template, which work in a completely different manner.