The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Messaging \ IRemotingFormatter

  1. // ==++==
  2. //
  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. //
  14. // ==--==
  15. /*============================================================
  16. **
  17. ** Interface: IRemotingFormatter;
  18. **
  19. **
  20. ** Purpose: The interface for all formatters.
  21. **
  22. **
  23. ===========================================================*/
  24. namespace System.Runtime.Remoting.Messaging
  25. {
  26.    
  27.     using System;
  28.     using System.IO;
  29.     using System.Runtime.Serialization;
  30.     [System.Runtime.InteropServices.ComVisible(true)]
  31.     public interface IRemotingFormatter : IFormatter
  32.     {
  33.        
  34.         // Begin the process of deserialization. For purposes of serialization,
  35.         // this will probably rely on a stream that has been connected to the
  36.         // formatter through other means.
  37.         //
  38.         object Deserialize(Stream serializationStream, HeaderHandler handler);
  39.        
  40.         // Start the process of serialization. The object graph commencing at
  41.         // graph will be serialized to the appropriate backing store.
  42.         void Serialize(Stream serializationStream, object graph, Header[] headers);
  43.        
  44.     }
  45.    
  46.    
  47.    
  48. }

Developer Fusion