generics 640

  1. Create Generic method constraining T to an Enum
  2. How to create a generic array in Java?
  3. How to Sort a List<T> by a property in the object
  4. How do I use reflection to call a generic method?
  5. Is List<Dog> a subclass of List<Animal>? Why aren't Java's generics implicitly polymorphic?
  6. How to get the type of T from a member of a generic class or method?
  7. What is PECS (Producer Extends Consumer Super)?
  8. Difference between <? super T> and <? extends T> in Java
  9. How to get a class instance of generics type T
  10. What is a raw type and why shouldn't we use it?
  11. Create instance of generic type in Java?
  12. How do I address unchecked cast warnings?
  13. How do I clone a generic list in C#?
  14. How do I make the method return type generic?
  15. Why does C# forbid generic attribute types?
  16. How can I return NULL from a generic method in C#?
  17. List<T> or IList<T>
  18. What is the point of the diamond operator in Java 7?
  19. List<> OrderBy Alphabetical Order
  20. Remove duplicates from a List<T> in C#
  21. What are the reasons why Map.get(Object key) is not (fully) generic
  22. Passing arguments to C# generic new() of templated type
  23. What is SuppressWarnings (“unchecked”) in Java?
  24. Get generic type of class at runtime
  25. A generic list of anonymous class
  26. How to remove elements from a generic list while iterating over it?
  27. Java Generics Wildcarding With Multiple Classes
  28. Potential heap pollution via varargs parameter
  29. Passing a single item as IEnumerable<T>
  30. Google Gson - deserialize list<class> object? (generic type)
  31. ArrayList vs List<> in C#
  32. Is there a constraint that restricts my generic method to numeric types?
  33. IEnumerable and Recursion using yield return
  34. Can't operator == be applied to generic types in C#?
  35. Method has the same erasure as another method in type
  36. Check if a class is derived from a generic class
  37. C# generics syntax for multiple type parameter constraints
  38. Java generics - why is “extends T” allowed but not “implements T”?
  39. Collections.emptyList() returns a List<Object>?
  40. Nullable type as a generic parameter possible?
  41. What are the differences between Generics in C# and Java… and Templates in C++?
  42. What does “where T : class, new()” mean?
  43. What is a higher kinded type in Scala?
  44. What's the reason I can't create generic array types in Java?
  45. Null or default comparison of generic argument in C#
  46. Scala: Abstract types vs generics
  47. What's the difference between SortedList and SortedDictionary?
  48. Get generic type of java.util.List
  49. ReSharper warns: “Static field in generic type”
  50. Java generics - type erasure - when and what happens