public bool SaveToXml(string path) { using (var file = File.OpenWrite(path)) return SaveCore(file); }