Is possible to add operator a class?
<p>look the UML image. I've got a generic class called BinaryProblem, this one receives two values of T value, int long, decimal. But I decided add a new one, Fraction class.</p>

<p><img src="http://i.stack.imgur.com/HxdNR.png" alt="enter image description here"></p>

<p>Suppose that I have a method called Add, Substract, Multiplicate and Division. I'd like to do something like this.</p>

<pre><code>var a = new Fraction(1 / 2);
var b = new Fraction(3 / 4);
var c = a + b;  // Fraction { Numerator = 5, Denominator = 4 } 
</code></pre>

<p>I know that can only put an condition, if (x.GetType() == ...) but, I'm sure later I'd add another types, and avoid to repeat some code.</p>

<p>I almost forget it, is possible to add numbers where the type is generic?</p>
