daily pastebin goal
43%
SHARE
TWEET

Untitled

a guest Mar 18th, 2019 31 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     public class ClassA
  2.     {
  3.     }
  4.     public class classC
  5.     {
  6.         public ClassA GetClassA()
  7.         {
  8.             return new ClassA();
  9.         }
  10.     }
  11.     public class ClassB<T1> where T1 : ClassA
  12.     {
  13.         void Foo()
  14.         {
  15.             var temp = new classC();
  16.             T1 classA = temp.GetClassA();
  17.         }
  18.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top