DEV Community


Discussion on: Universally quantified types in C#

shimmer profile image
Brian Berns Author • Edited

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?