private static bool Get40Message(string UserAgent, ref string userMessage)
{
var whichVersion = "";
var ret = false;
if (Helpers.Has40E(UserAgent))
{
whichVersion = ".NET 4.0";
ret = true;
}
else if (Helpers.Has40C(UserAgent))
{
whichVersion = ".NET 4.0 Client Profile";
ret = true;
}
if (ret)
{
userMessage += String.Format(@"You have {0}, this is a recent version of .NET. Download an installer for the newest version <strong>{1}</strong>.", whichVersion, Constants.DotNetOnline);
}
return ret;
}