How to implement == or >= operators for generic type
- by momsd
I have a generic type Foo which has a internal generic class Boo. Boo class a property Value of type K. In a method inside Foo i want to do a boo.Value >= value Note that second operand value is of type T. while compiling i am getting following error:
Operator '=' cannot be applied to operands of type 'T' and 'T'
Can anyone please tell me whats the problem here?