예제 #1
0
        public static XmlDocVisibilityLevel?ReadVisibilityOption(this ArgsReader args)
        {
            string visibility = args.ReadOption("visibility");

            switch (visibility)
            {
            case "public":
                return(XmlDocVisibilityLevel.Public);

            case "protected":
                return(XmlDocVisibilityLevel.Protected);

            case "internal":
                return(XmlDocVisibilityLevel.Internal);

            case "private":
                return(XmlDocVisibilityLevel.Private);

            case null:
                return(null);

            default:
                throw new ArgsReaderException($"Unknown visibility option: {visibility}");
            }
        }
예제 #2
0
 public static string ReadNamespaceOption(this ArgsReader args)
 {
     return(args.ReadOption("namespace"));
 }
예제 #3
0
 public static bool ReadGeneratyeTocFlag(this ArgsReader args)
 {
     return(args.ReadFlag("toc"));
 }
예제 #4
0
 public static string ReadSourceOption(this ArgsReader args)
 {
     return(args.ReadOption("source"));
 }
예제 #5
0
 public static string ReadFrontMatter(this ArgsReader args)
 {
     return(args.ReadOption("front-matter"));
 }
예제 #6
0
 public static string ReadPermalinkStyle(this ArgsReader args)
 {
     return(args.ReadOption("permalink"));
 }
예제 #7
0
 public static bool ReadNamespacePageFlag(this ArgsReader args)
 {
     return(args.ReadFlag("namespace-pages"));
 }
예제 #8
0
 public static string ReadExternalOption(this ArgsReader args)
 {
     return(args.ReadOption("external"));
 }
예제 #9
0
 public static bool ReadSkipUnbrowsableFlag(this ArgsReader args)
 {
     return(args.ReadFlag("skip-unbrowsable"));
 }
예제 #10
0
 public static string ReadBlackList(this ArgsReader args)
 {
     return(args.ReadOption("blacklist"));
 }
예제 #11
0
 public static string ReadTocPrefix(this ArgsReader args)
 {
     return(args.ReadOption("toc-prefix"));
 }