コード例 #1
0
        public string[] GetDelimiters(string input)
        {
            Extractor = !input.StartsWith("//")
                                ? new DefaultExtractor()
                                : (input.Contains('[')
                                    ? (IDelimiterExtractor) new ExtendedExtractor()
                                    : new CustomExtractor());

            return(Extractor.GetDelimiters(input));
        }
コード例 #2
0
        public string[] GetDelimiters(string input)
        {
            Extractor = !input.StartsWith("//")
                                ? new DefaultExtractor()
                                : (input.Contains('[')
                                    ? (IDelimiterExtractor)new ExtendedExtractor()
                                    : new CustomExtractor());

            return Extractor.GetDelimiters(input);
        }