If you consider:
class A : IInterface { }
at runtime:
A instance = new A();
instance.GetType(); // returns "A"
or
IInterface instance = new A();
instance.GetType(); // returns "A"
or
object instance = new A();
instance.GetType(); // returns "A"
Question: How to get IInterface as Type ?
instance.GetType().GetInterfaces()will get all the interfaces implemented or inherited by the instance type (Type.GetInterfaces Method).