I have some problems with my generic.
Part of code:
using System;
using System.Collections.Generic;
using System.Text;
namespace Gnrc
{
public class Gnrc<T>
{
//[some statements]
protected void SomeMethod()
{
T A, B, C;
//[some statements]
C = A + B; // CS0019: Operator '+' cannot be applied to operands of type 'T' and 'T'
//[some statements]
}
}
}
Is there available some "tricks" to bypass this error and compile ???
Of course, operator '+' is defined on 'T' type.
Best regards, Bliss.