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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
|
// System.Reflection/TypeDelegator.cs
//
// Paolo Molaro (lupus@ximian.com)
//
// (C) 2002 Ximian, Inc.
using System;
using System.Reflection;
using System.Globalization;
namespace System.Reflection {
[Serializable]
public class TypeDelegator : Type {
protected Type typeImpl;
protected TypeDelegator () {
}
public TypeDelegator( Type delegatingType)
{
if (delegatingType == null)
throw new ArgumentNullException ("delegatingType must be non-null");
typeImpl = delegatingType;
}
public override Assembly Assembly {
get { return typeImpl.Assembly; }
}
public override string AssemblyQualifiedName {
get { return typeImpl.AssemblyQualifiedName; }
}
public override Type BaseType {
get { return typeImpl.BaseType; }
}
public override string FullName {
get { return typeImpl.FullName; }
}
public override Guid GUID {
get { return typeImpl.GUID; }
}
public override Module Module {
get { return typeImpl.Module; }
}
public override string Name {
get { return typeImpl.Name; }
}
public override string Namespace {
get { return typeImpl.Namespace; }
}
public override RuntimeTypeHandle TypeHandle {
get { return typeImpl.TypeHandle; }
}
public override Type UnderlyingSystemType {
get { return typeImpl.UnderlyingSystemType; }
}
protected override TypeAttributes GetAttributeFlagsImpl ()
{
throw new NotImplementedException ();
//return typeImpl.GetAttributeFlagsImpl ();
}
protected override ConstructorInfo GetConstructorImpl (
BindingFlags bindingAttr, Binder binder, CallingConventions cc,
Type[] types, ParameterModifier[] modifiers)
{
throw new NotImplementedException ();
//return typeImpl.GetConstructorImpl (bindingAttr, binder, callConvention, types, modifiers);
}
public override ConstructorInfo[] GetConstructors( BindingFlags bindingAttr)
{
return typeImpl.GetConstructors (bindingAttr);
}
public override object[] GetCustomAttributes (bool inherit)
{
return typeImpl.GetCustomAttributes (inherit);
}
public override object[] GetCustomAttributes (Type attributeType, bool inherit)
{
return typeImpl.GetCustomAttributes (attributeType, inherit);
}
public override Type GetElementType()
{
return typeImpl.GetElementType ();
}
public override EventInfo GetEvent( string name, BindingFlags bindingAttr)
{
return typeImpl.GetEvent (name, bindingAttr);
}
public override EventInfo[] GetEvents()
{
return GetEvents (BindingFlags.Public);
}
public override EventInfo[] GetEvents (BindingFlags bindingAttr)
{
return typeImpl.GetEvents (bindingAttr);
}
public override FieldInfo GetField (string name, BindingFlags bindingAttr)
{
return typeImpl.GetField (name, bindingAttr);
}
public override FieldInfo[] GetFields( BindingFlags bindingAttr)
{
return typeImpl.GetFields (bindingAttr);
}
public override Type GetInterface( string name, bool ignoreCase)
{
return typeImpl.GetInterface (name, ignoreCase);
}
public override InterfaceMapping GetInterfaceMap( Type interfaceType)
{
return typeImpl.GetInterfaceMap (interfaceType);
}
public override Type[] GetInterfaces ()
{
return typeImpl.GetInterfaces ();
}
public override MemberInfo[] GetMember( string name, MemberTypes type, BindingFlags bindingAttr)
{
return typeImpl.GetMember (name, type, bindingAttr);
}
public override MemberInfo[] GetMembers( BindingFlags bindingAttr)
{
return typeImpl.GetMembers (bindingAttr);
}
protected override MethodInfo GetMethodImpl( string name, BindingFlags bindingAttr, Binder binder, CallingConventions callConvention, Type[] types, ParameterModifier[] modifiers)
{
throw new NotImplementedException ();
//return typeImpl.GetMethodImpl (name, bindingAttr, binder, callConvention, types, modifiers);
}
public override MethodInfo[] GetMethods( BindingFlags bindingAttr)
{
return typeImpl.GetMethods (bindingAttr);
}
public override Type GetNestedType( string name, BindingFlags bindingAttr)
{
return typeImpl.GetNestedType (name, bindingAttr);
}
public override Type[] GetNestedTypes( BindingFlags bindingAttr)
{
return typeImpl.GetNestedTypes (bindingAttr);
}
public override PropertyInfo[] GetProperties( BindingFlags bindingAttr)
{
return typeImpl.GetProperties (bindingAttr);
}
protected override PropertyInfo GetPropertyImpl( string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
{
throw new NotImplementedException ();
//return typeImpl.GetPropertyImpl (name, bindingAttr, bindingAttr, returnType, types, modifiers);
}
protected override bool HasElementTypeImpl()
{
throw new NotImplementedException ();
//return typeImpl.HasElementTypeImpl ();
}
public override object InvokeMember( string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters) {
return typeImpl.InvokeMember (name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
}
protected override bool IsArrayImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsArrayImpl ();
}
protected override bool IsByRefImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsByRefImpl ();
}
protected override bool IsCOMObjectImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsCOMObjectImpl ();
}
public override bool IsDefined( Type attributeType, bool inherit) {
return typeImpl.IsDefined (attributeType, inherit);
}
protected override bool IsPointerImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsPointerImpl ();
}
protected override bool IsPrimitiveImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsPrimitiveImpl ();
}
protected override bool IsValueTypeImpl()
{
throw new NotImplementedException ();
//return typeImpl.IsValueTypeImpl ();
}
#if NET_1_2
public override bool HasGenericArguments {
get {
throw new NotImplementedException ();
}
}
public override bool ContainsGenericParameters {
get {
throw new NotImplementedException ();
}
}
public override bool IsGenericParameter {
get {
throw new NotImplementedException ();
}
}
public override int GenericParameterPosition {
get {
throw new NotImplementedException ();
}
}
public override MethodInfo DeclaringMethod {
get {
throw new NotImplementedException ();
}
}
#endif
}
}
|