The Labs \ Source Viewer \ SSCLI \ System.Xml \ IRemovableWriter

  1. //------------------------------------------------------------------------------
  2. // <copyright file="IRemovableWriter.cs" company="Microsoft">
  3. //
  4. // Copyright (c) 2006 Microsoft Corporation. All rights reserved.
  5. //
  6. // The use and distribution terms for this software are contained in the file
  7. // named license.txt, which can be found in the root of this distribution.
  8. // By using this software in any fashion, you are agreeing to be bound by the
  9. // terms of this license.
  10. //
  11. // You must not remove this notice, or any other, from this software.
  12. //
  13. // </copyright>
  14. //------------------------------------------------------------------------------
  15. namespace System.Xml
  16. {
  17.    
  18.     /// <summary>
  19.     /// Event which is used when a raw writer in a processing pipeline wishes to remove itself from the pipeline and
  20.     /// replace itself with another writer.
  21.     /// </summary>
  22.     internal delegate void OnRemoveWriter(XmlRawWriter writer);
  23.    
  24.     /// <summary>
  25.     /// This interface is implemented by writers which wish to remove themselves from the processing pipeline once they
  26.     /// have accomplished some work. An example would be the auto-detect writer, which removes itself from the pipeline
  27.     /// once it has determined whether to use the Xml or the Html output mode.
  28.     /// </summary>
  29.     internal interface IRemovableWriter
  30.     {
  31.         OnRemoveWriter OnRemoveWriterEvent {
  32.             get;
  33.             set;
  34.         }
  35.     }
  36. }

Developer Fusion