Error on int in if statement
I have this defined in one class:
public
static int ProfCnt = 0;
Then I need to in another class use in an if statement:
if (History.CountProfRec != 0)
But I get error:
Error 1 Operator '==' cannot be applied to operands of type 'method group' and 'int'
Does anyone know what I have to do?
Thanks for the help,
arep.