Ejemplo n.º 1
0
        private void SaveDocument(XDocument document)
        {
            mStorage.Erase(mContainerKey);             // empty text file before saving

            using (var stream = mStorage.Open(mContainerKey).AsText().Write())
            {
                document.Save(stream, SaveOptions.None);
            }
        }