fork(2) download
  1. using System;
  2.  
  3. interface IEditor { }
  4.  
  5. class Editor : IEditor { }
  6.  
  7. interface ITest<out T> { }
  8.  
  9. class Test<T> : ITest<T> { }
  10.  
  11. public class Test
  12. {
  13. public static void Main()
  14. {
  15. ITest<IEditor> lstTest = (ITest<IEditor>)Activator
  16. .CreateInstance(typeof(Test<>)
  17. .MakeGenericType(typeof(Editor)));
  18. }
  19. }
Success #stdin #stdout 0.02s 34616KB
stdin
Standard input is empty
stdout
Standard output is empty