Helpers.GetWindows8Or10Message C# (CSharp) Method

GetWindows8Or10Message() private static method

Gets a message for the Windows 8 OS.
private static GetWindows8Or10Message ( string userAgent, string &userMessage ) : bool
userAgent string The user agent.
userMessage string The user message.
return bool
    private static bool GetWindows8Or10Message(string userAgent, ref string userMessage)
    {
        bool hasWindows10 = Helpers.HasWindows10(userAgent);
        if (Helpers.HasWindows8(userAgent) || hasWindows10)
        {
            var version = hasWindows10 ? "4.6" : "4.5";
            userMessage += string.Format(Constants.InferredText, version);
            return true;
        }

        return false;
    }