using System;
interface IEditor { }
class Editor : IEditor { }
interface ITest<out T> { }
class Test<T> : ITest<T> { }
public class Test
{
public static void Main()
{
ITest<IEditor> lstTest = (ITest<IEditor>)Activator
.CreateInstance(typeof(Test<>)
.MakeGenericType(typeof(Editor)));
}
}
dXNpbmcgU3lzdGVtOwoKaW50ZXJmYWNlIElFZGl0b3IgeyB9CgpjbGFzcyBFZGl0b3IgOiBJRWRpdG9yIHsgfQoKaW50ZXJmYWNlIElUZXN0PG91dCBUPiB7IH0KCmNsYXNzIFRlc3Q8VD4gOiBJVGVzdDxUPiB7IH0KCnB1YmxpYyBjbGFzcyBUZXN0CnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBNYWluKCkKCXsKCQlJVGVzdDxJRWRpdG9yPiBsc3RUZXN0ID0gKElUZXN0PElFZGl0b3I+KUFjdGl2YXRvcgoJCSAgICAuQ3JlYXRlSW5zdGFuY2UodHlwZW9mKFRlc3Q8PikKCQkgICAgLk1ha2VHZW5lcmljVHlwZSh0eXBlb2YoRWRpdG9yKSkpOwoJfQp9