When trying to call this function in my code i get the error in the title. Also Operator \'+=\' cannot be applied to the operands of type \'int\' and \'T\'
p
you can try casting the value like this ...
t += (int)value;
or
t+= Convert.ToInt32(value);