public Path AddPath(string path, Action<Path> configure = null) { var pathInfo = new Path(); Paths.Add(path, pathInfo); if (configure != null) configure(pathInfo); return pathInfo; }
private static JObject PathToJObject(Path p) { return new JObject(p.Operations.Select( op => new JProperty(op.Key, OpToJObject(op.Value)))); }