I need some help. I can't use in C# "break;" in an If-Statement and can't find a way to replace this thing. I am getting this error: no enclosing loop out of which to break This is my code...if anyone has a better idea please let me know.
Console.WriteLine("Do you want to stop the debugging process?\n Type YES or NO! ");
string back = Console.ReadLine();
if(back.Equals("YES")){
this.repository.serializeObject(position);
break;
}
Aucun commentaire:
Enregistrer un commentaire