Code Project

Code Project – For Those Who CodeDownload demo project – 32.8 Kb Introduction The current implementation of .NET generics is used mainly to make type-safe collections faster and more easy to use. Doing calculations on generic types is not as straightforward. The problem An example for doing calculations on generic types would be a generic method to calculate the sum of all elements in a List

https://www.codeproject.com/articles/Using-generics-for-calculations