Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Generic<T>
- {
- public static int Foo;
- }
- public class Test
- {
- public static void Main()
- {
- Generic<string>.Foo = 20;
- Generic<object>.Foo = 10;
- Console.WriteLine(Generic<string>.Foo); // 20
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement