Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
No enclosing loop out of which to break or continue
A break or continue statement was encountered outside of a loop.
For more information, see the break and continue statements.
The following sample generates CS0139 twice:
// CS0139.cs
namespace x
{
public class a
{
public static void Main()
{
continue; // CS0139
break; // CS0139
}
}
}
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.