When calling a method if a condition is true, my code is:-
if (bool ==true)
{
this.method();
}
private void method ()
{
}
1) I get an error message "statement expected." after "this.method();" and a ";" expected the the first "}".
2) Then at the end of private void method(), I also get a "statement expected" error.
Why am I getting these error messages? How do I rectify these issues?
Comment