Check out example codes for "wpf restart application c#". It will help you in understanding the concepts better.

Code Example 1

Application.Current.Shutdown();
System.Windows.Forms.Application.Restart();

Learn ReactJs, React Native from akashmittal.com