public static bool IsOSPlatformAttribute(CustomAttribute attrib, Platforms platform)
        {
            switch (attrib.AttributeType.Name)
            {
            case "SupportedOSPlatformAttribute":
            case "UnsupportedOSPlatformAttribute":
                var platformName = (string)attrib.ConstructorArguments [0].Value;
                return(platformName.StartsWith(platform.AsPlatformAttributeString(), StringComparison.OrdinalIgnoreCase));

            default:
                return(false);
            }
        }