The Labs \ Source Viewer \ SSCLI \ System.Runtime.Remoting.Proxies \ __TransparentProxy

  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. ** File:    __TransparentProxy.cs
  18. **
  19. **
  20. ** Purpose: Defines Transparent proxy
  21. **
  22. **
  23. ===========================================================*/
  24. namespace System.Runtime.Remoting.Proxies
  25. {
  26.     using System.Runtime.Remoting;
  27.     // Transparent proxy and Real proxy are vital pieces of the
  28.     // remoting data structures. Transparent proxy magically
  29.     // creates a message that represents a call on it and delegates
  30.     // to the Real proxy to do the real remoting work.
  31.     using System;
  32.     internal sealed class __TransparentProxy
  33.     {
  34.         // Created inside EE
  35.         private __TransparentProxy()
  36.         {
  37.             throw new NotSupportedException(Environment.GetResourceString(ResId.NotSupported_Constructor));
  38.         }
  39.        
  40.         // Private members called by VM
  41.         #pragma warning disable 169
  42.         private RealProxy _rp;
  43.         // Reference to the real proxy
  44.         private object _stubData;
  45.         // Data used by stubs to decide whether to short circuit calls or not
  46.         private IntPtr _pMT;
  47.         // Method table of the class this proxy represents
  48.         private IntPtr _pInterfaceMT;
  49.         // Cached interface method table
  50.         private IntPtr _stub;
  51.         // Unmanaged code that decides whether to short circuit calls or not
  52.         #pragma warning restore 169
  53.     }
  54.    
  55. }

Developer Fusion