Exemplo n.º 1
0
 static string GetScope(PathTemplateProcessor processor, Path projectFilePath)
 {
     IDictionary<string, string> properties;
     var parseOk = processor.TryParsePath(projectFilePath, false, out properties);
     return parseOk &&
            properties.ContainsKey("scope")
                    ? properties["scope"]
                    : null;
 }
Exemplo n.º 2
0
        static string GetScope(PathTemplateProcessor processor, Path projectFilePath)
        {
            IDictionary <string, string> properties;
            var parseOk = processor.TryParsePath(projectFilePath, out properties);

            return(parseOk &&
                   properties.ContainsKey("scope")
                           ? properties["scope"]
                           : null);
        }
 protected void given_template(string path)
 {
     Processor = new PathTemplateProcessor(path);
 }