Advertisement
Guest User

Untitled

a guest
Oct 6th, 2015
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. private static void Main(string[] args)
  2. {
  3. Test<int>();
  4. TestList<int>(new List<int>{ 1, 2,3 }, 1, 2, 3, 4, 5, 6, 7,8);
  5. Console.ReadKey();
  6. }
  7.  
  8. private static void TestList<T>(List<T> list, T item, T t2, T t3, T t4, T t5, T t6, T t7, int t8)
  9. {
  10. Console.WriteLine(item == null);
  11. Console.WriteLine("Collection contains {0}? {1}", item, list.Contains(item));
  12. }
  13.  
  14. IL_002e: call void BoxingAndUnboxing.Program::TestList<int32>(class [mscorlib]System.Collections.Generic.List`1<!!0>,
  15. !!0,
  16. !!0,
  17. !!0,
  18. !!0,
  19. !!0,
  20. !!0,
  21. !!0,
  22. int32)
  23.  
  24. .method private hidebysig static void TestList<T>(class [mscorlib]System.Collections.Generic.List`1<!!T> list,
  25. !!T item,
  26. !!T t2,
  27. !!T t3,
  28. !!T t4,
  29. !!T t5,
  30. !!T t6,
  31. !!T t7,
  32. int32 t8) cil managed
  33.  
  34. 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