I want to find the type of the generic T
and compare that to check which interface it is, at run-time.
So, this works for finding the type of T at run-time :
Type interfaceName = typeof(T); // gives me the specific interface type
But when I try to check if it is equal to the type of an interface, I am not getting the expected response.
Type.GetType("IMyInterface"); //this returns null
How do I compare these two?