static void TestInterface() { var classImplementingInterface = new ClassImplementingAnnotatedInterface(); }
static void TestInterface(ClassImplementingAnnotatedInterface classImplementingInterface) { // The interface is not referred to anywhere, so it will be trimmed // but its annotation still applies classImplementingInterface.GetType().GetMethod("UsedMethod"); }