Generics that Restricts the Types to Int, Double, long

Posted by Ngu Soon Hui on Stack Overflow See other posts from Stack Overflow or by Ngu Soon Hui
Published on 2010-04-15T12:48:26Z Indexed on 2010/04/15 12:53 UTC
Read the original article Hit count: 205

Filed under:

Is it possible to constraint a method so that it receives only int, double, long or other numerical types that has the usual numerical operations ( such as +,-,*,/) defined?

© Stack Overflow or respective owner

Related posts about c#