How do I restart a WPF application? [duplicate]

I found this:
It works.
But.
Is there any better way?

System.Diagnostics.Process.Start(Application.ResourceAssembly.Location);
Application.Current.Shutdown();

Leave a Comment