Helpers.Get40Message C# (CSharp) Method

Get40Message() private static method

private static Get40Message ( string UserAgent, string &userMessage ) : bool
UserAgent string
userMessage string
return bool
    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;
    }