I have a generic method with a new() constraint. I have a call to this method with an abstract type which, of course, won't compile. I wish to keep the call generic, but was hoping I could determine at runtime what the derived class is so as to satisfy the compiler. The call would look something like this:
var result = MyGenericMethod<FindDerivedClass(myAbstractClass)>();
I tried typeof() but this doesn't seem to work.