break out of for loop from if statement c# code example Example: c# while loop break while(true) { break; }