Welcome to mirror list, hosted at ThFree Co, Russian Federation.

ObjRef.cs « System.Runtime.Remoting « corlib « class « mcs - github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 6f56487896955dd4011d40e13213ab4ddd4b294b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
//
// System.Runtime.Remoting.ObjRef.cs
//
// Author:
//   Miguel de Icaza (miguel@ximian.com)
//
// (C) Ximian, Inc.  http://www.ximian.com
//
//
// FIXME: This is just a skeleton for practical purposes.
//

using System;
using System.Runtime.Serialization;

namespace System.Runtime.Remoting {

	[Serializable]
	public class ObjRef : IObjectReference, ISerializable {
		MarshalByRefObject mbr;
		SerializationInfo si;
		Type type;
		
		public ObjRef ()
		{
		}
		
		public ObjRef (MarshalByRefObject mbr, Type type)
		{
			this.mbr = mbr;
			this.type = type;
		}

		[MonoTODO]
		protected ObjRef (SerializationInfo si, StreamingContext sc)
		{
			// FIXME: Implement.
			//
			// This encarnates the object from serialized data.
		}

		[MonoTODO]
		public virtual void GetObjectData (SerializationInfo si, StreamingContext sc)
		{
			// FIXME:
		}

		[MonoTODO]
		public virtual object GetRealObject (StreamingContext sc)
		{
			// FIXME:
			
			return null;
		}

		[MonoTODO]
		public bool IsFromThisAppDomain ()
		{
			// FIXME:
			
			return true;
		}

		[MonoTODO]
		public bool IsFromThisProcess ()
		{
			// FIXME:
			
			return true;
		}
	}
}