/// <summary> /// Create a writer for the specified location. /// </summary> /// <param name="location">The location.</param> public PersistWriter(IPersistenceLocation location) { this.fileOutput = location.CreateStream(FileMode.OpenOrCreate); this.xmlOut = new WriteXML(this.fileOutput); }
/// <summary> /// Construct a persist reader. /// </summary> /// <param name="location">The location to use.</param> public PersistReader(IPersistenceLocation location) { this.fileInput = location.CreateStream(FileMode.Open); this.xmlIn = new ReadXML(this.fileInput); }