Get default browser user agent in C#
staticvoidMain(string[]args){stringbrowser=GetDefaultBrowser();stringlocation=GetBrowserLocation(browser);stringversion=GetBrowserVersion(location);stringuseragent=GetUserAgent(browser);Console.WriteLine("Browser : "+browser);Console.WriteLine("Location : "+location);Console.WriteLine("Version : "+version);Console.WriteLine("User-Agent : "+useragent);Console.ReadLine();}