how to reload app.config file at runtime in c#

C#
public static void RefreshAppSettings()
{
   ConfigurationManager.RefreshSection("appSettings");
}
Source

Also in C#: