Check out example codes for "c# after while loop unreachable". It will help you in understanding the concepts better.

Code Example 1

public R method() {
  while(true) { //infinite loop
    //some code
  }
  //from here the below code will never get executed
}

Learn ReactJs, React Native from akashmittal.com