A Repasky

A Repasky

  • NA
  • 231
  • 183.7k

Error on int in if statement

Jan 19 2013 9:04 PM
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.

Answers (2)