public void ReadPaths(string pathNodeName, IAddPaths paths) { while (Name == pathNodeName) { paths.Add(OSPath(GetAttribute("path"))); Read(); } }