wpf restart application c#

C#
Application.Current.Shutdown();
System.Windows.Forms.Application.Restart();
Source

Also in C#: