Amazon.Util.Internal.InternalSDKUtils.DetermineOS C# (CSharp) Method

DetermineOS() public static method

public static DetermineOS ( ) : string
return string
        public static string DetermineOS()
        {
            try
            { 
                string desc = RuntimeInformation.OSDescription.Trim();
                return GetValidSubstringOrUnknown(desc, 0, desc.LastIndexOf(' '));
            }
            catch
            {
                return _unknown;
            }
        }