Skip to content
loading...

re: Universally quantified types in C# VIEW POST

TOP OF THREAD FULL DISCUSSION
re: You answered your own question as soon as you've realized you could not give two different T under one scope. Just declare your getWeight somewhere...
 

One of the requirements is that you have to pass a generic getWeight to SumWeights somehow. Imagine that there are multiple different implementations of getWeight that all have the same type signature. How do you tell SumWeights which version to use?

code of conduct - report abuse