2002-09-13 Nick Drochak <ndrochak@gol.com>
[mono.git] / mcs / class / corlib / System / TypedReference.cs
1 //
2 // System.TypedReference.cs
3 //
4 // Author:
5 //   Dick Porter (dick@ximian.com)
6 //
7 // (C) Ximian, Inc.  http://www.ximian.com
8 //
9
10 using System.Reflection;
11
12 namespace System 
13 {
14         [CLSCompliant(false)]
15         public struct TypedReference 
16         {
17                 public override bool Equals(object o)
18                 {
19                         throw new NotSupportedException("This operation is not supported for this type");
20                 }
21
22                 [MonoTODO]
23                 public override int GetHashCode()
24                 {
25                         throw new NotImplementedException();
26                 }
27
28                 [MonoTODO]
29                 public static Type GetTargetType(TypedReference value)
30                 {
31                         throw new NotImplementedException();
32                 }
33
34                 [MonoTODO]
35                 public static TypedReference MakeTypedReference(object target, FieldInfo[] flds) 
36                 {
37                         if(target==null) {
38                                 throw new ArgumentNullException("target is null");
39                         }
40                         if(flds==null) {
41                                 throw new ArgumentNullException("flds is null");
42                         }
43                         if(flds.Length==0) {
44                                 throw new ArgumentException("flds has no elements");
45                         }
46                         throw new NotImplementedException();
47                 }
48
49                 [MonoTODO]
50                 public static void SetTypedReference(TypedReference target,
51                                                      object value) 
52                 {
53                         if(value==null) {
54                                 throw new ArgumentNullException("value is null");
55                         }
56                         throw new NotImplementedException();
57                 }
58                 
59                 [MonoTODO]
60                 public static RuntimeTypeHandle TargetTypeToken(TypedReference value)
61                 {
62                         throw new NotImplementedException();
63                 }
64
65                 [MonoTODO]
66                 public static object ToObject(TypedReference value)
67                 {
68                         throw new NotImplementedException();
69                 }
70         }
71 }