2002-01-05 Ravi Pratap <ravi@ximian.com>
[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         public class ObjRef : IObjectReference, ISerializable {
19                 MarshalByRefObject mbr;
20                 SerializationInfo si;
21                 Type type;
22                 
23                 public ObjRef ()
24                 {
25                 }
26                 
27                 public ObjRef (MarshalByRefObject mbr, Type type)
28                 {
29                         this.mbr = mbr;
30                         this.type = type;
31                 }
32
33                 [MonoTODO]
34                 public ObjRef (SerializationInfo si, StreamingContext sc)
35                 {
36                         // FIXME: Implement.
37                         //
38                         // This encarnates the object from serialized data.
39                 }
40
41                 [MonoTODO]
42                 public virtual void GetObjectData (SerializationInfo si, StreamingContext sc)
43                 {
44                         // FIXME:
45                 }
46
47                 [MonoTODO]
48                 public virtual object GetRealObject (StreamingContext sc)
49                 {
50                         // FIXME:
51                         
52                         return null;
53                 }
54
55                 [MonoTODO]
56                 public bool IsFromThisAppDomain ()
57                 {
58                         // FIXME:
59                         
60                         return true;
61                 }
62
63                 [MonoTODO]
64                 public bool IsFromThisProcess ()
65                 {
66                         // FIXME:
67                         
68                         return true;
69                 }
70         }
71 }