SyntaxFix
Write A Post
Hire A Developer
Questions
just use a property
int _theVariable; public int TheVariable{ get{return _theVariable;} set{ _theVariable = value; if ( _theVariable == 1){ //Do stuff here. } } }