Write() public méthode

public Write ( AcdEntry entry ) : void
entry AcdEntry
Résultat void
Exemple #1
0
 public void Save(string filename) {
     using (var writer = new AcdWriter(filename)) {
         foreach (var entry in Entries.Values) {
             writer.Write(entry);
         }
     }
 }
Exemple #2
0
        /// <summary>
        /// Filename only used for encryption here!
        /// </summary>
        /// <param name="filename">Only used for encryption here!</param>
        /// <param name="outputStream">Stream to save data</param>
        public void Save([NotNull] string filename, Stream outputStream)
        {
            if (filename == null)
            {
                throw new Exception("Filename not specified (shouldn’t happen)");
            }

            EnsureFullyLoaded();
            using (var writer = new AcdWriter(filename, outputStream)) {
                foreach (var entry in _entries.Values)
                {
                    writer.Write(entry);
                }
            }
        }