Gang Of Coders
Home
About Us
Contact Us
All Generics Solutions on Gang of Coders
Total of 461 Generics Solutions
Create Generic method constraining T to an Enum
C#
Generics
Enums
Generic Constraints
Nullable reference types with generic return type
C#
Generics
C# 8.0
Nullable Reference-Types
Why can't I use a type argument in a type parameter with multiple bounds?
Java
Generics
Constraints
Convention for Filenames of Generic Classes
C#
Generics
NUnit TestCase with Generics
C#
Unit Testing
Generics
Nunit
Testcase
C# Generic Static Constructor
C#
Generics
List<object>.RemoveAll - How to create an appropriate Predicate
C#
Generics
Delegates
Lambda
Predicate
Is generic constructor in non-generic class supported?
C#
Generics
Constructor
Convert dictionary to List<KeyValuePair>
C#
Generics
Collections
Named arguments and generic type inference in C# 4.0
C#
Generics
C# 4.0
Compiler Errors
Type Inference
Extension of constructed generic type in Swift
Generics
Swift
Generics in Swift - "Generic parameter 'T' could not be inferred
Ios
Generics
Swift3
How are Java generics different from C++ templates? Why can't I use int as a parameter?
Java
C++
Generics
How can I require a generic parameter to be an enum that implements an interface?
Java
Generics
Enums
Why does using Collections.emptySet() with generics work in assignment but not as a method parameter?
Java
Generics
Collections
Type Inference
Is there a way to refer to the current type with a type variable?
Java
Generics
Types
The type or namespace name 'T' could not be found
C#
Generics
What is the difference between 'E', 'T', and '?' for Java generics?
Java
Generics
Where are generic methods stored?
C#
.Net
Generics
Kotlin generics Array<T> results in "Cannot use T as a reified type parameter. Use a class instead" but List<T> does not
Java
Arrays
Generics
Kotlin
Reification
Why it is not possible to define generic indexers in .NET?
C#
.Net
Generics
Why does java.util.Properties implement Map<Object,Object> and not Map<String,String>
Java
Generics
Collections
What does List<?> mean in java generics?
Java
Generics
Bounded Wildcard
How to check if a variable is an IEnumerable of some sort
C#
Generics
Foreach
Ienumerable
SortedSet<T> vs HashSet<T>
C#
.Net
Collections
Generics
Java- The meaning of <T extends Comparable<T>>?
Java
Generics
Polymorphism
Constructor reference - no warning when generics array is created
Java
Generics
Java 8
Language Lawyer
Different generic behaviour when using lambda instead of explicit anonymous inner class
Java
Generics
Lambda
Java 8
Generic method with multiple constraints
C#
Generics
.Net 3.5
Generic Type in constructor
C#
.Net
Generics
Inversion of-Control
C# Get Generic Type Name
C#
Generics
C# instantiate generic List from reflected Type
C#
Reflection
Generics
List<T> readonly with a private set
C#
.Net
Generics
C# 3.0
Practical advantage of generics vs interfaces
C#
Generics
Polymorphism
Difference between generic type and wildcard type
Java
Generics
Wildcard
Operator '??' cannot be applied to operands of type 'T' and 'T'
C#
Generics
Compiler Errors
Can the generic type of a generic Java method be used to enforce the type of arguments?
Java
Generics
Types
What's the reason I can't create generic array types in Java?
Java
Generics
Type Erasure
Can you declare a object literal type that allows unknown properties in typescript?
Generics
Typescript
typescript2.0
Object Literal
Why can't I use System.ValueType as a generics constraint?
C#
Generics
C++ class template of specific baseclass
C++
Generics
Inheritance
Templates
Cannot convert from 'method group' to 'System.Action<object>' error
C#
Generics
Delegates
Method Group
What is a higher kinded type in Scala?
Scala
Generics
Types
Higher Kinded-Types
Type Constructor
Using a generic model in ASP.NET MVC Razor
Generics
asp.net Mvc-3
Razor
The component does not have a resource identified by the uri
C#
.Net
Wpf
Generics
Mvvm
Generics what does <?> actually mean?
Java
Generics
Get generic type of java.util.List
Java
Generics
Why does an implicit conversion operator from <T> to <U> accept <T?>?
C#
Generics
Nullable
Implicit Conversion
Value Type
Why doesn't C# support implied generic types on class constructors?
C#
.Net
Generics
Why is Java's Class<T> generic?
Java
Generics
Convert generic List/Enumerable to DataTable?
C#
List
Generics
Datatable
Why can't a Generic Type Parameter have a lower bound in Java?
Java
Generics
Bounds
Calling generic method using reflection in .NET
.Net
Generics
Reflection
Why isn't getSelectedItem() on JComboBox generic?
Java
Swing
Generics
Jcombobox
Java 7
Create Expression from Func
C#
Generics
How does the reified keyword in Kotlin work?
Generics
Kotlin
Kotlin Reified-Type-Parameters
How do you cast a List of supertypes to a List of subtypes?
Java
List
Generics
Collections
Casting
Java generics - Make Generic to extends 2 interfaces
Java
Class
Generics
Interface
Determine if type is dictionary
C#
Generics
Dictionary
Reflection type inference on Java 8 Lambdas
Java
Generics
Reflection
Lambda
Java 8
+- Signs in Generic Declaration in Scala
Scala
Generics
OptionalInt vs Optional<Integer>
Java
Generics
Java 8
Language Design
What are the difference between generic Type(T) vs any in typescript
Javascript
Angular
Typescript
Generics
Types
Why are stateful widgets defined as two classes in flutter?
Generics
Dart
Flutter
Generic many-to-many relationships
Python
Django
Generics
Django Models
Many to-Many
Java Generic Class - Determine Type
Java
Generics
Generic version of Enum.Parse in C#
C#
Generics
Enums
Generics : List<? extends Animal> is same as List<Animal>?
Java
Generics
Covariance
Extends
Contravariance
Generic Property in C#
C#
Generics
Properties
How to Convert List<String> to List<Object>
Java
Generics
Troubleshooting "The type parameter T is hiding the type T" warning
Java
Generics
Warnings
What does <T extends mean?
Java
Generics
Is there a way to force the return type of Arrays.asList
Java
Generics
Generic with multiple classes
C#
Generics
Types
Parameters
What's the difference between SortedList and SortedDictionary?
C#
.Net
Generics
Sortedlist
Sorteddictionary
How to sum values in a Map with a stream?
Java
Java 8
Java Stream
Generics
Java Generics Puzzler, extending a class and using wildcards
Java
Generics
Bounded Wildcard
Java generics: why is this output possible?
Java
Generics
Intellij Idea
Jshell
React with Typescript -- Generics while using React.forwardRef
Reactjs
Typescript
Generics
Create instance of generic type whose constructor requires a parameter?
C#
.Net
Generics
Explanation why IEnumerable is more efficient than a List
Generics
.Net 3.5
Convert DataTable to List<T>
C#
.Net
Generics
Datatable
How to Find Item in Dictionary Collection?
C#
Generics
Dictionary
Java int[] array to HashSet<Integer>
Java
Generics
Collections
Mockito and Hamcrest: how to verify invocation of Collection argument?
Java
Generics
Mockito
Hamcrest
How to access the type arguments of typing.Generic?
Python
Generics
How do I use reflection to call a generic method?
C#
.Net
Generics
Reflection
How to create a generic array in Java?
Java
Arrays
Generics
Reflection
Instantiation
Collections.emptyList() returns a List<Object>?
Java
Generics
Type Inference
How to use Class<T> in Java?
Java
Templates
Class
Generics
ReSharper warns: "Static field in generic type"
C#
asp.net Mvc-3
Generics
Static
Resharper
How to Pass Parameters to Activator.CreateInstance<T>()
C#
Generics
Createinstance
Why don't Java Generics support primitive types?
Java
Generics
Primitive
Java generics type erasure: when and what happens?
Java
Generics
Type Erasure
Generic type conversion FROM string
C#
Generics
Primitive
Type Safety
Scala: Abstract types vs generics
Generics
Scala
Abstract Type
convert a list of objects from one type to another using lambda expression
C#
Generics
Lambda
What does the question mark in Java generics' type parameter mean?
Java
Generics
What is the best way to clone/deep copy a .NET generic Dictionary<string, T>?
C#
Generics
Collections
Clone
<out T> vs <T> in Generics
C#
Generics
Covariance
When do Java generics require <? extends T> instead of <T> and is there any downside of switching?
Java
Generics
Junit
Java: how do I get a class literal from a generic type?
Java
Generics
Class
Literals
Performance of Arrays vs. Lists
.Net
Performance
Arrays
Generics
List
Mockito.any() pass Interface with Generics
Java
Generics
Mockito
How to reference generic classes and methods in xml documentation
C#
Generics
Reference
Xml Documentation
Correct way to check if a type is Nullable
C#
Generics
Nullable
Difference between <? super T> and <? extends T> in Java
Java
Generics
Collections
The type must be a reference type in order to use it as parameter 'T' in the generic type or method
C#
Generics
Static method in a generic class?
Java
Generics
Static Methods
Generic TryParse
C#
Generics
Tryparse
Jackson - Deserialize using generic class
Java
Json
Generics
Jackson
Pass An Instantiated System.Type as a Type Parameter for a Generic Class
C#
.Net
Generics
What are the differences between Generics in C# and Java... and Templates in C++?
C#
Java
C++
Generics
Templates
How do I make the return type of a method generic?
C#
.Net
Generics
Return Type
How can I convert int[] to Integer[] in Java?
Java
Arrays
Generics
Collections
Difference between List, List<?>, List<T>, List<E>, and List<Object>
Java
Generics
How do you convert a DataTable into a generic list?
C#
Generics
Datatable
How to make a Java Generic method static?
Java
Generics
foreach vs someList.ForEach(){}
C#
.Net
Generics
Loops
Enumeration
C# Create New T()
C#
.Net
Generics
C# 4.0
.Net 4.0
Is List<Dog> a subclass of List<Animal>? Why are Java generics not implicitly polymorphic?
Java
Generics
Inheritance
Polymorphism
What is PECS (Producer Extends Consumer Super)?
Java
Generics
Super
Bounded Wildcard
Pecs
Select a Dictionary<T1, T2> with LINQ
C#
.Net
Linq
Generics
Why are arrays covariant but generics are invariant?
Java
Arrays
Generics
Language Design
Covariance
Is there a generic constructor with parameter constraint in C#?
C#
Generics
Parameters
Constructor
Generic Constraints
Mockito: List Matchers with generics
Java
Generics
Warnings
Mockito
Matcher
How can I use interface as a C# generic type constraint?
C#
Generics
Interface
Constraints
Create a new object from type parameter in generic class
Typescript
Generics
Func<T> with out parameter
C#
.Net
Linq
Generics
Func
How do I get a class instance of generic type T?
Java
Generics
Generic List - moving an item within the list
C#
.Net
Generics
List
Why can't the C# constructor infer type?
C#
Generics
Constructor
Type Inference
What is a difference between <? super E> and <? extends E>?
Java
Generics
How can I add to List<? extends Number> data structures?
Java
Generics
How to make a Java class that implements one interface with two generic types?
Java
Generics
Interface
Multiple Inheritance
How to get the type of T from a member of a generic class or method
C#
.Net
Generics
What is reification?
C#
Generics
Reification
Java Enum definition
Java
Generics
Enums
Crtp
Value of type 'T' cannot be converted to
C#
.Net
Generics
Casting
Generic return type upper bound - interface vs. class - surprisingly valid code
Java
Generics
Java 8
C# - Multiple generic types in one list
C#
Generics
How do I clone a generic List in Java?
Java
Generics
Arraylist
Clone
Why doesn't Java allow generic subclasses of Throwable?
Java
Generics
Exception
Language Design
What is a raw type and why shouldn't we use it?
Java
Generics
Raw Types
What are the differences between "generic" types in C++ and Java?
Java
C++
Generics
Templates
Language Features
Testing if object is of generic type in C#
C#
.Net
Generics
Reflection
Types
Why shouldn't Java enum literals be able to have generic type parameters?
Java
Generics
Enums
Difference between "*" and "Any" in Kotlin generics
Generics
Kotlin
Get type of a generic parameter in Java with reflection
Java
Generics
Reflection
Cast Object to Generic Type for returning
Java
Generics
Casting
How to pass a class type as a function parameter
Swift
Generics
Type Inference
Instantiating a generic class in Java
Java
Generics
Nullable type issue with ?: Conditional Operator
C#
Generics
Nullable
Conditional Operator
Is it possible to solve the "A generic array of T is created for a varargs parameter" compiler warning?
Java
Generics
What does <T> (angle brackets) mean in Java?
Java
Generics
Java Map equivalent in C#
C#
Java
Generics
Collections
Java generics T vs Object
Java
Generics
Java: Instanceof and Generics
Java
Generics
Instanceof
Typechecking
No generic implementation of OrderedDictionary?
C#
.Net
Generics
.Net 4.0
Ordereddictionary
What is the difference between ? and Object in Java generics?
Java
Generics
What is the concept of erasure in generics in Java?
Java
Generics
Converting a generic list to a CSV string
C#
Generics
.Net 3.5
How do I combine two lists in Dart?
List
Generics
Dart
Concatenation
How do I clone a generic list in C#?
C#
Generics
List
Clone
Why aren't Java Collections remove methods generic?
Java
Generics
Collections
How do I implement IEnumerable<T>
C#
.Net
Generics
Why doesn't the example compile, aka how does (co-, contra-, and in-) variance work?
Generics
Scala
Covariance
Contravariance
Mockito: Stubbing Methods That Return Type With Bounded Wild-Cards
Java
Unit Testing
Generics
Mockito
Bounded Wildcard
How to initialize a List<T> to a given size (as opposed to capacity)?
C#
.Net
Generics
List
Initialization
Inherit from a generic base class, apply a constraint, and implement an interface in C#
C#
Generics
Inheritance
Interface
Constraints
Kotlin: How to work with List casts: Unchecked Cast: kotlin.collections.List<Kotlin.Any?> to kotlin.colletions.List<Waypoint>
List
Generics
Casting
Kotlin
When to use generic methods and when to use wild-card?
Java
Generics
Wildcard
Protocol can only be used as a generic constraint because it has Self or associatedType requirements
Ios
Swift
Generics
Swift2
Swift Protocols
Convert string to nullable type (int, double, etc...)
C#
.Net
Generics
Extension Methods
Type Conversion
How do I address unchecked cast warnings?
Java
Generics
Warnings
How do I make the method return type generic?
Java
Generics
Return Value
What is out keyword in kotlin
Generics
Kotlin
Generic type parameter naming convention for Java (with multiple chars)?
Java
Generics
Naming Conventions
Usage of protocols as array types and function parameters in swift
Ios
Swift
Generics
Swift Protocols
Are there strongly-typed collections in Objective-C?
Objective C
Generics
Data Structures
Collections
Strong Typing
How to dynamically create generic C# object using reflection?
C#
Generics
Reflection
Activator
How do I get the type name of a generic type argument?
C#
Generics
What does a tilde in angle brackets mean when creating a Java generic class?
Java
Generics
Intellij Idea
Syntax
Tilde
Jackson and generic type reference
Java
Json
Generics
Jackson
How to solve Operator '!=' cannot be applied to operands of type 'T' and 'T'
C#
Generics
Protocol doesn't conform to itself?
Swift
Generics
Swift Protocols
java: HashMap<String, int> not working
Java
Generics
How to use TypeToken + generics with Gson in Kotlin
Generics
Gson
Kotlin
Typetoken
Generics in C#, using type of a variable as parameter
C#
.Net
Generics
Types
What exactly is an "open generic type" in .NET?
C#
.Net
Generics
Open Generics
Create instance of generic type in Java?
Java
Generics
Why can't I use float value as a template parameter?
C++
Templates
Generics
Floating Point
C# generic type constraint for everything nullable
C#
Generics
Nullable
Why no generics in Go?
Generics
Functional Programming
Go
How can I return NULL from a generic method in C#?
C#
Generics
Java unchecked: unchecked generic array creation for varargs parameter
Java
Generics
Variadic Functions
What do constructor type arguments mean when placed *before* the type?
Java
Generics
Syntax
Constructor
Generic Type-Argument
Calling generic method with a type argument known only at execution time
C#
Linq
Generics
Reflection
C# vs Java generics
C#
Java
Generics
Comparison
Using the field of an object as a generic Dictionary key
.Net
Generics
Dictionary
returning a Void object
Java
Generics
Return Value
List<Map<String, String>> vs List<? extends Map<String, String>>
Java
Generics
Inheritance
Polymorphism
Returning 'IList' vs 'ICollection' vs 'Collection'
C#
.Net
Generics
Collections
What does "Protocol ... can only be used as a generic constraint because it has Self or associated type requirements" mean?
Swift
Generics
Xcode6
Swift Protocols
Get generic type of class at runtime
Java
Generics
Reflection
Why do some claim that Java's implementation of generics is bad?
Java
Generics
How to cast List<Object> to List<MyClass>
Java
Generics
Casting
How do I read an attribute on a class at runtime?
C#
Generics
Custom Attributes
Create a List of primitive int?
Java
List
Generics
Collections
C# generic "where constraint" with "any generic type" definition?
C#
Generics
Where
Type Constraints
Java Generics: Cannot cast List<SubClass> to List<SuperClass>?
Java
Generics
Convert string to List<string> in one line?
C#
asp.net
List
Generics
String
Elegant way to combine multiple collections of elements?
C#
Linq
Generics
Collections
Remove duplicates from a List<T> in C#
C#
List
Generics
Duplicates
Calling static generic methods
Java
Generics
Static
Type Inference
Optional generic type
Generics
Typescript
What do I return if the return type of a method is Void? (Not void!)
Java
Generics
Void
getting type T from IEnumerable<T>
C#
Generics
Reflection
Java Class.cast() vs. cast operator
Java
Generics
Casting
Compiler Warnings
Calling a static method on a generic type parameter
C#
Generics
Java Generics (Wildcards)
Java
Generics
Bounded Wildcard
SortedList<>, SortedDictionary<> and Dictionary<>
C#
Generics
Dictionary
Sortedlist
Sorteddictionary
Lambda Expression and generic defined only in method
Java
Generics
Lambda
Java 8
What exactly is a "Special Class"?
C#
Class
Generics
Generic Constraints
void in C# generics?
C#
Generics
How to remove elements from a generic list while iterating over it?
C#
List
Loops
Generics
Key Value
Why does C# forbid generic attribute types?
C#
Generics
.Net Attributes
Best exception for an invalid generic type argument
C#
Generics
Exception
How to update an object in a List<> in C#
C#
asp.net
List
Generics
Cast object to T
C#
Generics
Casting
Does .NET have a way to check if List a contains all items in List b?
C#
.Net
List
Generics
Mono
List<T> or IList<T>
C#
List
Generics
What does <T> denote in C#
C#
.Net
Generics
In C#, how to instantiate a passed generic type inside a method?
C#
Generics
What is the difference between '&' and ',' in Java generics?
Java
Generics
How to avoid type safety warnings with Hibernate HQL results?
Java
Generics
Help with C# generics error - "The type 'T' must be a non-nullable value type"
C#
Generics
Cannot implicitly convert type 'Int' to 'T'
C#
Generics
Generic extending class AND implements interface in Kotlin
Generics
Kotlin
Kotlin - Void vs. Unit vs. Nothing
Kotlin
Generics
Types
Functional Programming
Best way to test if a generic type is a string? (C#)
C#
Generics
Instantiating object of type parameter
Java
Generics
Reflection
Using a 'using alias = class' with generic types?
C#
.Net
Generics
Alias
What's the difference between <?> and <? extends Object> in Java Generics?
Java
Syntax
Generics
Check if 'T' inherits or implements a class/interface
C#
Generics
Cannot explicitly specialize a generic function
Generics
Swift
Possible heap pollution via varargs parameter
Java
Eclipse
Generics
Variadic Functions
C# use System.Type as Generic parameter
C#
Generics
.Net 4.0
Types
Cannot create an array of LinkedLists in Java...?
Java
Arrays
Generics
Why should I care that Java doesn't have reified generics?
Java
Generics
Reification
Cast Int to Generic Enum in C#
C#
Generics
Casting
Enums
How to get generic parameter class in Kotlin
Generics
Kotlin
Deserialize a List<T> object with Gson?
Java
Json
Generics
Gson
How do I check if a given value is a generic list?
C#
Reflection
List
Generics
List<T>.Contains() is very slow?
.Net
Arrays
Generics
List
obtain generic enumerator from an array
C#
Arrays
Generics
Ienumerator
how to instanceof List<MyType>?
Java
Generics
ThreadStatic v.s. ThreadLocal<T>: is generic better than attribute?
C#
Generics
Attributes
Thread Local
Threadstatic
Swift equivalent for MIN and MAX macros
Generics
Swift
Cast List<int> to List<string> in .NET 2.0
C#
Generics
Casting
C# Syntax - Split String into Array by Comma, Convert To Generic List, and Reverse Order
C#
Generics
Syntax
Ilist
Is there a reasonable approach to "default" type parameters in C# Generics?
C#
Generics
Types
Default
Parameters
What is the point of the diamond operator (<>) in Java?
Java
Generics
Java 7
Diamond Operator
What is SuppressWarnings ("unchecked") in Java?
Java
Generics
Unchecked
Suppress Warnings
The given key was not present in the dictionary. Which key?
C#
Exception
Generics
Dictionary
Are static members of a generic class tied to the specific instance?
C#
.Net
Generics
Static
Test if object is instanceof a parameter type
Java
Generics
Instanceof
How to use generic protocol as a variable type
Ios
Xcode
Generics
Swift
Typescript ReturnType of generic function
Typescript
Generics
C# Generics and Type Checking
C#
Generics
Types
List<T> OrderBy Alphabetical Order
C#
Generics
List
Lambda
Sorting
Creating a generic method in C#
C#
Generics
How to require that a protocol can only be adopted by a specific class
Swift
Generics
Protocols
Java generics - get class?
Java
Generics
Can I use a collection initializer for Dictionary<TKey, TValue> entries?
C#
.Net
Generics
Collections
C# 3.0
Is there any way to enforce typing on NSArray, NSMutableArray, etc.?
Objective C
Generics
Data Structures
Collections
Strong Typing
Iterate enum values using java generics
Java
Generics
Enums
Enumeration
Java: bounded wildcards or bounded type parameter?
Java
Api
Generics
Bounded Wildcard
How to Autowire Bean of generic type <T> in Spring?
Java
Spring
Generics
Autowired
Spring Annotations
ArrayList vs List<> in C#
C#
.Net
List
Generics
Arraylist
Sorting an IList in C#
C#
Generics
Sorting
Ilist
What is cool about generics, why use them?
C#
Generics
Types
A generic list of anonymous class
C#
.Net
Generics
Anonymous Types
How to compare values of generic types?
C#
.Net
Generics
Icomparable
What is the syntax for a default constructor for a generic class?
C#
.Net
Generics
Generic constraint to match numeric types
C#
Generics
Numeric
Passing arguments to C# generic new() of templated type
C#
.Net
Generics
New Operator
What is the "proper" way to cast Hibernate Query.list() to List<Type>?
Java
Hibernate
Generics
How to define generic type limit to primitive types?
C#
.Net
Generics
Type Constraints
Java-syntax for explicitly specifying generic arguments in method calls
Java
Generics
Is it possible to create a generic @helper method with Razor?
asp.net Mvc
Generics
asp.net Mvc-3
Razor
What's the point of Guava's Optional class
Java
Generics
Guava
C# generics syntax for multiple type parameter constraints
C#
Generics
Filtering out values from a C# Generic Dictionary
C#
Generics
Dictionary
Filtering
Does .NET have a built-in EventArgs<T>?
C#
Generics
Eventargs
Generics in C# - how can I create an instance of a variable type with an argument?
C#
Generics
Swift: check if generic type conforms to protocol
Generics
Swift
Why don't associated types for protocols use generic type syntax in Swift?
Oop
Generics
Swift
Syntax
A peculiar feature of exception type inference in Java 8
Java
Generics
Java 8
Type Inference
How do I find out what type each object is in a ArrayList<Object>?
Java
Generics
Reflection
Arraylist
Explanation of the get-put principle
Java
Generics
What is the difference between 'super' and 'extends' in Java Generics
Java
Generics
Cannot apply indexing with [] to an expression of type 'System.Collections.Generic.IEnumerable<>
C#
List
Generics
Ienumerable
How to create a generic array?
Java
Generics
In C#, why can't a List<string> object be stored in a List<object> variable
C#
.Net
Generics
Covariance
Type Safety
Convert dictionary values into array
C#
.Net
Arrays
Generics
Dictionary
What are the reasons why Map.get(Object key) is not (fully) generic
Java
Generics
Collections
Map
Creating a Generic<T> type instance with a variable containing the Type
C#
Generics
Types
Instance
Is there a constraint that restricts my generic method to numeric types?
C#
Generics
Constraints
Passing a single item as IEnumerable<T>
C#
.Net
Generics
Ienumerable
Using IsAssignableFrom with 'open' generic types
C#
Generics
Reflection
Types
Java Generics WildCard: <? extends Number> vs <T extends Number>
Java
Generics
How do I get the `.class` attribute from a generic type parameter?
Java
Generics
Convert List(of object) to List(of string)
C#
vb.net
Generics
C# Determine Duplicate in List
C#
Linq
Algorithm
List
Generics
Java Generics With a Class & an Interface - Together
Java
Class
Generics
Bounded Wildcard
Casting array to IEnumerable<T>
C#
Arrays
Generics
Casting
c# compare two generic values
C#
Generics
Checking type parameter of a generic method in C#
C#
Generics
Typechecking
Generics with Spring RESTTemplate
Java
Spring
Generics
Jackson
Resttemplate
What does "T" mean in C#?
C#
.Net
Generics
How to create a generic extension method?
C#
Generics
How to determine if a List is sorted in Java?
Java
Generics
Sorting
Wildcard
How to make a method generic when "type 'T' must be a reference type"?
C#
Generics
Why can't you have multiple interfaces in a bounded wildcard generic?
Java
Generics
Language Design
Bounded Wildcard
How to make a Generic Type Cast function
C#
.Net
Generics
What is the meaning of the type safety warning in certain Java generics casts?
Java
Generics
Warnings
Casting
Type Safety
C# Generics won't allow Delegate Type Constraints
C#
Generics
Events
Delegates
Constraints
.NET - Convert Generic Collection to DataTable
C#
Generics
Collections
Datatable
Nullable
What are Reified Generics? How do they solve Type Erasure problems and why can't they be added without major changes?
Java
Generics
Collections
Jvm
Reification
Method has the same erasure as another method in type
Java
Generics
Why does the C# compiler complain that "types may unify" when they derive from different base classes?
C#
Generics
scala - Any vs underscore in generics
Scala
Generics
Covariance
Any
Existential Type
Generic repository in ASP.NET Core without having a separate AddScoped line per table in Startup.cs?
Generics
Dependency Injection
asp.net Core
asp.net Core-Mvc
Why does IEnumerator<T> inherit from IDisposable while the non-generic IEnumerator does not?
C#
Generics
Ienumerator
Java generics super keyword
Java
Generics
Java generics: multiple generic parameters?
Java
Generics
Parameters
C#'s equivalent of Java's <? extends Base> in generics
C#
.Net
Generics
Inheritance
Extends
Mocking generic methods in Moq without specifying T
C#
.Net
Generics
Mocking
Moq
What does "The type T must be a reference type in order to use it as parameter" mean?
C#
Generics
Controller
StringDictionary vs Dictionary<string, string>
Generics
.Net 3.5
Collections
Dictionary
Stringdictionary
What is the generic version of a Hashtable?
C#
.Net
Generics
XML Serialize generic list of serializable objects
C#
List
Generics
Xml Serialization
IUnityContainer.Resolve<T> throws error claiming it cannot be used with type parameters
C#
.Net
Generics
Unity Container
Compilation
Convert a generic list to an array
Java
Generics
Lists.newArrayList vs new ArrayList
Java
Generics
Guava
How to have Java method return generic list of any type?
Java
List
Generics
Reflection
Casting
Why does this Java 8 program not compile?
Java
Generics
Type Inference
Java 8
How to create a Partial-like that requires a single property to be set
Typescript
Generics
Making a generic property
C#
.Net
Generics
Properties
How do I setup multiple type bounds in Scala?
Generics
Scala
Syntax and Sample Usage of _Generic in C11
C
Generics
C11
Scala generic method - No ClassTag available for T
Scala
Generics
Scala 2.10
Using Spring RestTemplate in generic method with generic parameter
Java
Spring
Generics
Jackson
Resttemplate
What is a real life example of generic <? super T>?
Java
Generics
Inheritance
Super
Can I specify a generic type in XAML (pre .NET 4 Framework)?
C#
Wpf
Xaml
Generics
How do I tell if a type is a "simple" type? i.e. holds a single value
C#
.Net
Generics
How to pass one SwiftUI View as a variable to another View struct
Swift
Generics
View
Protocols
Swiftui
Bug in eclipse compiler or in javac ("type parameters of T cannot be determined")
Java
Eclipse
Generics
Implement an Interface with Generic Methods
C#
Generics
Interface
Why is T bounded by Object in the Collections.max() signature?
Java
Generics
Extend array types using where clause in Swift
Swift
Generics
Swift2
Swift Extensions
Converting from String to <T>
C#
Xml
Generics
C# List<Interface>: why you cannot do `List<IFoo> foo = new List<Bar>();`
C#
Generics
Java Generics - Bridge method?
Java
Generics
How to implement enum with generics?
Java
Generics
Interface
Enums
Generics - where T is a number?
C#
Generics
Numbers
Generic List<T> as parameter on method
C#
Generics
C# 3.0
Default for generic type?
C#
Generics
.Net 4.0
Java Abstract Class Implementing an Interface with Generics
Java
Generics
Abstract Class
Boxing and unboxing with generics
C#
.Net
Generics
Boxing
Unboxing
How, when and where are generic methods made concrete?
C#
.Net
Generics
Can't operator == be applied to generic types in C#?
C#
Generics
Operators
Equals Operator
Generic type checking
C#
Generics
Primitive
Type Safety
Java Generics: Generic type defined as return type only
Java
Generics
Java 5
Java Generics: List, List<Object>, List<?>
Java
Generics
Params IEnumerable<T> c#
C#
Generics
Ienumerable
Params
Using .ToDictionary()
C#
Generics
Is there a generic Task.WaitAll?
C#
Generics
Task Parallel-Library
Covariance
Why isn't Array a generic type?
C#
Generics
Types
Language Design
Explain the syntax of Collections.<String>emptyList()
Java
Generics
Collections
Raw use of parameterized class
Java
Generics
Can I Create a Dictionary of Generic Types?
C#
Generics
How to Sort a List<T> by a property in the object
C#
Generics
List
Sorting
Test for equality to the default value
C#
Generics
Equality
Comparing the values of two generic Numbers
Java
Generics
Numbers
Comparable
Using the "params" keyword for generic parameters in C#
C#
Generics
How to create a class literal of a known type: Class<List<String>>
Java
Generics
Jls
Why we can't do List<Parent> mylist = ArrayList<child>();
Java
Generics
Inheritance
Collections
Mockito: Verifying with generic parameters
Java
Generics
Parameters
Verification
Mockito
Generic typealias in Swift
Swift
Generics
Generic type to get enum keys as union string in typescript?
Typescript
Generics
Enums
Instantiating generics type in java
Java
Generics
Bounding generics with 'super' keyword
Java
Generics
Language Design
Super
Multiple wildcards on a generic methods makes Java compiler (and me!) very confused
Java
Generics
Wildcard
Compiler Errors
how to create a generic constructor for a generic class in java?
Java
Generics
Initializing a Generic variable from a C# Type Variable
C#
Generics
Case-insensitive matching of a string to a Java enum
Java
Generics
Enums
What does the question mark mean in a type parameter bound?
Generics
Rust
How to use generics in props in React in a functional component?
Reactjs
Typescript
Generics
React Props
generic NOT constraint where T : !IEnumerable
C#
.Net
Generics
Ienumerable
Using Mockito to mock classes with generic parameters
Java
Generics
Mockito
Calling generic method with Type variable
C#
Generics
find common items across multiple lists in C#
C#
Generics
Get all types implementing specific open generic type
C#
Generics
Reflection
Open Generics
How to cast List<object> to List<SomethingElse>
C#
Generics
What are the differences between ConcurrentQueue and BlockingCollection in .Net?
.Net
Generics
C# 4.0
What does "where T : class, new()" mean?
C#
Generics
Type Constraints
Check if a class is derived from a generic class
C#
Generics
Reflection
Generic Way to Check If Entity Exists In Entity Framework?
C#
Generics
Entity Framework-4.1
Extending Generic Classes
Java
Class
Generics
Subclassing
Cannot create an instance of the variable type 'Item' because it does not have the new() constraint
C#
Templates
Generics
Compiler Errors
Type of Generic Stateless Component React? OR Extending generic function interface in typescript to have a further generic?
Javascript
Reactjs
Typescript
Generics
Class is a raw type. References to generic type Class<T> should be parameterized
Java
Generics
Warnings
Suppress Warnings
Type Erasure
call a function for each value in a generic c# collection
C#
Linq
Lambda
Generics
Why isn't there generic variance for classes in C# 4.0?
C#
.Net
Generics
C# 4.0
Calling a generic method with a dynamic type
C#
Generics
reference to generic type in XML code comment
C#
Xml
Documentation
Reference
Generics
Generic array creation error
Java
Arrays
Generics
Generic class that extends class and implements interface
Java
Android
Generics
Performance: type derived from generic
C#
.Net
Performance
Generics
Clr
Error "illegal generic type for instanceof" when using local classes
Java
Generics
Local Class
implicit operator using interfaces
C#
Generics
Compiler Construction
Casting
Implicit Conversion
Why is "extends T" allowed but not "implements T"?
Java
Generics
Syntax
default value for generic type in c#
C#
Generics
Default Value
Most succinct way to convert ListBox.items to a generic list
C#
Generics
Collections
Type Conversion
How to convert string to any type
C#
Generics
Reflection
Java Type Generic as Argument for GSON
Java
Generics
Gson
Nullable type as a generic parameter possible?
C#
Generics
Java generics in ArrayList.toArray()
Java
Arrays
Generics
How to determine the class of a generic type?
Java
Generics
GetHashCode override of object containing generic array
C#
Arrays
Generics
Hashcode
Generics open and closed constructed types
C#
Generics
Type-safe generic data structures in plain-old C?
C
Generics
Data Structures
Code Generation
What causes javac to issue the "uses unchecked or unsafe operations" warning
Java
Generics
Warnings
IEnumerable and Recursion using yield return
C#
Generics
Ienumerable
Yield
Typescript promise generic type
Generics
Typescript
Class object of generic class (java)
Java
Generics
How to call generic method with a given Type object?
C#
.Net
Generics
Reflection
Types
Stubbing a method that takes Class<T> as parameter with Mockito
Java
Class
Generics
Mocking
Mockito
How do I define a generic class that implements an interface and constrains the type parameter?
C#
Generics
Inheritance
Constraints
understanding nested generic classes in C# with quiz
C#
Generics
Inheritance
Nested
Case insensitive access for generic dictionary
C#
Generics
Dictionary
Arrays of Generics in Swift
Arrays
Swift
Generics
Swift Protocols
Generic constraints, where T : struct and where T : class
C#
Generics
Class
Struct
Constraints
Is this valid Java?
Java
Generics
Javac
Gcj
C# - Get the item type for a generic list
C#
Collections
Generics
Difference between IEnumerable and IEnumerable<T>?
C#
Ienumerable
Generics
Ilist
Icollection
What does an "in" generic parameter do?
C#
Generics
Cannot perform instanceof check against parameterized type ArrayList<Foo>
Java
Android
Generics
How to properly document S4 methods using roxygen2
R
Generics
Methods
S4
Roxygen2
in Java syntax, Class<? extends Something>
Java
Generics
C# Generic constraints to include value types AND strings
C#
String
Generics
Constraints
Value Type
Why does the C# compiler allow an explicit cast between IEnumerable<T> and TAlmostAnything?
C#
.Net
Generics
Compiler Errors
Why does a generic type constraint result in a no implicit reference conversion error?
C#
Generics
Implicit Conversion
Type Constraints
How to cast ArrayList<> from List<>
Java
Generics
Casting
Varargs to ArrayList problem in Java
Java
Generics
Variadic Functions
Null or default comparison of generic argument in C#
C#
Generics
How to determine whether T is a value type or reference class in generic?
C#
.Net
Generics
Rd file name conflict when extending a S4 method of some other package
R
Generics
Package
S4
Roxygen2
Passing a class with type parameter as type parameter for generic method in Java
Java
Class
Generics