You want to call a method, so you would have to add the parenthesis:
myclass obj = new myclass();
obj.b = true;
while (obj.notEnough()) { //Methods are always called by using the parenthesis ()
Thread.Sleep(5);
}
6
solved How to use class method to stop loop? [closed]