Advertisement
Guest User

Untitled

a guest
Jul 25th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. using System;
  2. public class Generic<T>
  3. {
  4. public static int Foo;
  5. }
  6.  
  7. public class Test
  8. {
  9. public static void Main()
  10. {
  11. Generic<string>.Foo = 20;
  12. Generic<object>.Foo = 10;
  13. Console.WriteLine(Generic<string>.Foo); // 20
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement