コード例 #1
0
        public static IRule FindRule(string id, string data, BestPractices extension)
        {
            switch (id)
            {
                case "robotstxt":
                    return new RobotsTxtRule(extension);
                //case "favicon":
                //    return new Favicon();
                case "microdata":
                    return new Microdata();
                case "description":
                    return new Description(data, extension);
                case "viewport":
                    return new Viewport(data, extension);
            }

            return null;
        }
コード例 #2
0
        public IRule FindRule(string id, string data, BestPractices extension)
        {
            switch (id)
            {
            case "robotstxt":
                return(new RobotsTxt(extension));

            //case "favicon":
            //    return new Favicon();
            case "microdata":
                return(new Microdata());

            case "description":
                return(new Description(data, extension));

            case "viewport":
                return(new Viewport(data, extension));
            }

            return(null);
        }