Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private static void Main(string[] args)
- {
- Test<int>();
- TestList<int>(new List<int>{ 1, 2,3 }, 1, 2, 3, 4, 5, 6, 7,8);
- Console.ReadKey();
- }
- private static void TestList<T>(List<T> list, T item, T t2, T t3, T t4, T t5, T t6, T t7, int t8)
- {
- Console.WriteLine(item == null);
- Console.WriteLine("Collection contains {0}? {1}", item, list.Contains(item));
- }
- IL_002e: call void BoxingAndUnboxing.Program::TestList<int32>(class [mscorlib]System.Collections.Generic.List`1<!!0>,
- !!0,
- !!0,
- !!0,
- !!0,
- !!0,
- !!0,
- !!0,
- int32)
- .method private hidebysig static void TestList<T>(class [mscorlib]System.Collections.Generic.List`1<!!T> list,
- !!T item,
- !!T t2,
- !!T t3,
- !!T t4,
- !!T t5,
- !!T t6,
- !!T t7,
- int32 t8) cil managed
- IL_001d: callvirt instance bool class [mscorlib]System.Collections.Generic.List`1<!!T>::Contains(!0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement