c sharp exit while loop

C#
// To forcibly exit a while loop use 'break'
while (true)
{
	// Do something
  
	if (conditional)
    {
    	break;
  	}
}
Source

Also in C#: