-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProxyType.cs
More file actions
94 lines (76 loc) · 2.39 KB
/
Copy pathProxyType.cs
File metadata and controls
94 lines (76 loc) · 2.39 KB
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
using System;
using System.Globalization;
using System.Reflection;
namespace LuaInterface
{
/// <summary>
/// Summary description for ProxyType.
/// </summary>
public class ProxyType : IReflect
{
Type proxy;
public ProxyType(Type proxy)
{
this.proxy = proxy;
}
/// <summary>
/// Provide human readable short hand for this proxy object
/// </summary>
/// <returns></returns>
public override string ToString()
{
return "ProxyType(" + UnderlyingSystemType + ")";
}
public Type UnderlyingSystemType
{
get
{
return proxy;
}
}
public FieldInfo GetField(string name, BindingFlags bindingAttr)
{
return proxy.GetField(name, bindingAttr);
}
public FieldInfo[] GetFields(BindingFlags bindingAttr)
{
return proxy.GetFields(bindingAttr);
}
public MemberInfo[] GetMember(string name, BindingFlags bindingAttr)
{
return proxy.GetMember(name, bindingAttr);
}
public MemberInfo[] GetMembers(BindingFlags bindingAttr)
{
return proxy.GetMembers(bindingAttr);
}
public MethodInfo GetMethod(string name, BindingFlags bindingAttr)
{
return proxy.GetMethod(name, bindingAttr);
}
public MethodInfo GetMethod(string name, BindingFlags bindingAttr, Binder binder, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetMethod(name, bindingAttr, binder, types, modifiers);
}
public MethodInfo[] GetMethods(BindingFlags bindingAttr)
{
return proxy.GetMethods(bindingAttr);
}
public PropertyInfo GetProperty(string name, BindingFlags bindingAttr)
{
return proxy.GetProperty(name, bindingAttr);
}
public PropertyInfo GetProperty(string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers)
{
return proxy.GetProperty(name, bindingAttr, binder, returnType, types, modifiers);
}
public PropertyInfo[] GetProperties(BindingFlags bindingAttr)
{
return proxy.GetProperties(bindingAttr);
}
public object InvokeMember(string name, BindingFlags invokeAttr, Binder binder, object target, object[] args, ParameterModifier[] modifiers, CultureInfo culture, string[] namedParameters)
{
return proxy.InvokeMember(name, invokeAttr, binder, target, args, modifiers, culture, namedParameters);
}
}
}