generics 904

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