ObjRef.cs 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. //
  2. // System.Runtime.Remoting.ObjRef.cs
  3. //
  4. // Author:
  5. // Miguel de Icaza ([email protected])
  6. //
  7. // (C) Ximian, Inc. http://www.ximian.com
  8. //
  9. //
  10. // FIXME: This is just a skeleton for practical purposes.
  11. //
  12. using System;
  13. using System.Runtime.Serialization;
  14. namespace System.Runtime.Remoting {
  15. public class ObjRef : IObjectReference, ISerializable {
  16. MarshalByRefObject mbr;
  17. SerializationInfo si;
  18. Type type;
  19. public ObjRef ()
  20. {
  21. }
  22. public ObjRef (MarshalByRefObject mbr, Type type)
  23. {
  24. this.mbr = mbr;
  25. this.type = type;
  26. }
  27. public ObjRef (SerializationInfo si, StreamingContext sc)
  28. {
  29. // FIXME: Implement.
  30. //
  31. // This encarnates the object from serialized data.
  32. }
  33. public virtual void GetObjectData (SerializationInfo si, StreamingContext sc)
  34. {
  35. // FIXME:
  36. }
  37. public virtual object GetRealObject (StreamingContext sc)
  38. {
  39. // FIXME:
  40. return null;
  41. }
  42. public bool IsFromThisAppDomain ()
  43. {
  44. // FIXME:
  45. return true;
  46. }
  47. public bool IsFromThisProcess ()
  48. {
  49. // FIXME:
  50. return true;
  51. }
  52. }
  53. }