public void WriteTo(Stream out1) { ExternalLinkDocument doc = new ExternalLinkDocument(); doc.ExternalLink = (/*setter*/ link); doc.Save(out1); }
public void ReadFrom(Stream is1) { try { XmlDocument xmldoc = ConvertStreamToXml(is1); ExternalLinkDocument doc = ExternalLinkDocument.Parse(xmldoc, NamespaceManager); link = doc.ExternalLink; } catch (XmlException e) { throw new IOException(e.Message); } }