public string TryGetValue(string path) { path = path.Replace("\\", "/"); int f = path.IndexOf("/"); if (f == -1) { string v; if (Attributes.TryGetValue(path, out v)) { return(v); } return(null); } string name = path.Substring(0, f); RecorderNode node = Nodes.FirstOrDefault(o => o.Name == name); if (node == null) { return(null); } return(node.TryGetValue(path.Substring(f + 1))); }
public string TryGetValue(string path) { return(mRoot.TryGetValue(path)); }