The curious lack of type inference support in C# constructors
Given a generic class in C# like this one: You will need to specify what the type T should be when you call the constructor: The compiler is not able to use type inference to infer the type T to be int. Now, this is interesting as type inference is supported by any other generic …
The curious lack of type inference support in C# constructors Read More »