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