|
|
@@ -19,24 +19,24 @@ namespace MonoTests.System.Runtime.Remoting
|
|
|
public override AbstractSurrogate GetAbstractSurrogate () { return new ReflectionAbstractSurrogate (); }
|
|
|
public override InterfaceSurrogate GetInterfaceSurrogate () { return new ReflectionInterfaceSurrogate (); }
|
|
|
|
|
|
- public static int Simple (object target)
|
|
|
+ public static int Simple (Type type, object target)
|
|
|
{
|
|
|
object[] parms = new object[0];
|
|
|
- MethodBase m = target.GetType ().GetMethod ("Simple");
|
|
|
+ MethodBase m = type.GetMethod ("Simple");
|
|
|
return (int) m.Invoke (target, parms);
|
|
|
}
|
|
|
|
|
|
- public static string PrimitiveParams (object target, int a, uint b, char c, string d)
|
|
|
+ public static string PrimitiveParams (Type type, object target, int a, uint b, char c, string d)
|
|
|
{
|
|
|
object[] parms = new object[] {a,b,c,d};
|
|
|
- MethodBase m = target.GetType ().GetMethod ("PrimitiveParams");
|
|
|
+ MethodBase m = type.GetMethod ("PrimitiveParams");
|
|
|
return (string) m.Invoke (target, parms);
|
|
|
}
|
|
|
|
|
|
- public static string PrimitiveParamsInOut (object target, ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
|
|
|
+ public static string PrimitiveParamsInOut (Type type, object target, ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
|
|
|
{
|
|
|
object[] parms = new object[] {a1,0,b1,0f,c1,'\0',d1,null};
|
|
|
- MethodBase m = target.GetType ().GetMethod ("PrimitiveParamsInOut");
|
|
|
+ MethodBase m = type.GetMethod ("PrimitiveParamsInOut");
|
|
|
string res = (string) m.Invoke (target, parms);
|
|
|
a1 = (int)parms[0];
|
|
|
b1 = (float)parms[2];
|
|
|
@@ -49,17 +49,17 @@ namespace MonoTests.System.Runtime.Remoting
|
|
|
return res;
|
|
|
}
|
|
|
|
|
|
- public static Complex ComplexParams (object target, ArrayList a, Complex b, string c)
|
|
|
+ public static Complex ComplexParams (Type type, object target, ArrayList a, Complex b, string c)
|
|
|
{
|
|
|
object[] parms = new object[] {a,b,c};
|
|
|
- MethodBase m = target.GetType ().GetMethod ("ComplexParams");
|
|
|
+ MethodBase m = type.GetMethod ("ComplexParams");
|
|
|
return (Complex) m.Invoke (target, parms);
|
|
|
}
|
|
|
|
|
|
- public static Complex ComplexParamsInOut (object target, ref ArrayList a, out Complex b, string c)
|
|
|
+ public static Complex ComplexParamsInOut (Type type, object target, ref ArrayList a, out Complex b, string c)
|
|
|
{
|
|
|
object[] parms = new object[] {a,null,c};
|
|
|
- MethodBase m = target.GetType ().GetMethod ("ComplexParamsInOut");
|
|
|
+ MethodBase m = type.GetMethod ("ComplexParamsInOut");
|
|
|
Complex res = (Complex) m.Invoke (target, parms);
|
|
|
a = (ArrayList) parms[0];
|
|
|
b = (Complex) parms[1];
|
|
|
@@ -71,27 +71,27 @@ namespace MonoTests.System.Runtime.Remoting
|
|
|
{
|
|
|
public override int Simple ()
|
|
|
{
|
|
|
- return ReflectionCallTest.Simple (RemoteObject);
|
|
|
+ return ReflectionCallTest.Simple (typeof (RemoteObject), RemoteObject);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParams (int a, uint b, char c, string d)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParams (RemoteObject, a, b, c, d);
|
|
|
+ return ReflectionCallTest.PrimitiveParams (typeof (RemoteObject), RemoteObject, a, b, c, d);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParamsInOut (ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParamsInOut (RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
+ return ReflectionCallTest.PrimitiveParamsInOut (typeof (RemoteObject), RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParams (ArrayList a, Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParams (RemoteObject, a, b, c);
|
|
|
+ return ReflectionCallTest.ComplexParams (typeof (RemoteObject), RemoteObject, a, b, c);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParamsInOut (ref ArrayList a, out Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParamsInOut (RemoteObject, ref a, out b, c);
|
|
|
+ return ReflectionCallTest.ComplexParamsInOut (typeof (RemoteObject), RemoteObject, ref a, out b, c);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -99,27 +99,27 @@ namespace MonoTests.System.Runtime.Remoting
|
|
|
{
|
|
|
public override int Simple ()
|
|
|
{
|
|
|
- return ReflectionCallTest.Simple (RemoteObject);
|
|
|
+ return ReflectionCallTest.Simple (typeof (AbstractRemoteObject), RemoteObject);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParams (int a, uint b, char c, string d)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParams (RemoteObject, a, b, c, d);
|
|
|
+ return ReflectionCallTest.PrimitiveParams (typeof (AbstractRemoteObject), RemoteObject, a, b, c, d);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParamsInOut (ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParamsInOut (RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
+ return ReflectionCallTest.PrimitiveParamsInOut (typeof (AbstractRemoteObject), RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParams (ArrayList a, Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParams (RemoteObject, a, b, c);
|
|
|
+ return ReflectionCallTest.ComplexParams (typeof (AbstractRemoteObject), RemoteObject, a, b, c);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParamsInOut (ref ArrayList a, out Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParamsInOut (RemoteObject, ref a, out b, c);
|
|
|
+ return ReflectionCallTest.ComplexParamsInOut (typeof (AbstractRemoteObject), RemoteObject, ref a, out b, c);
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@@ -127,27 +127,27 @@ namespace MonoTests.System.Runtime.Remoting
|
|
|
{
|
|
|
public override int Simple ()
|
|
|
{
|
|
|
- return ReflectionCallTest.Simple (RemoteObject);
|
|
|
+ return ReflectionCallTest.Simple (typeof (IRemoteObject), RemoteObject);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParams (int a, uint b, char c, string d)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParams (RemoteObject, a, b, c, d);
|
|
|
+ return ReflectionCallTest.PrimitiveParams (typeof (IRemoteObject), RemoteObject, a, b, c, d);
|
|
|
}
|
|
|
|
|
|
public override string PrimitiveParamsInOut (ref int a1, out int a2, ref float b1, out float b2, ref char c1, out char c2, ref string d1, out string d2)
|
|
|
{
|
|
|
- return ReflectionCallTest.PrimitiveParamsInOut (RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
+ return ReflectionCallTest.PrimitiveParamsInOut (typeof (IRemoteObject), RemoteObject, ref a1, out a2, ref b1, out b2, ref c1, out c2, ref d1, out d2);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParams (ArrayList a, Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParams (RemoteObject, a, b, c);
|
|
|
+ return ReflectionCallTest.ComplexParams (typeof (IRemoteObject), RemoteObject, a, b, c);
|
|
|
}
|
|
|
|
|
|
public override Complex ComplexParamsInOut (ref ArrayList a, out Complex b, string c)
|
|
|
{
|
|
|
- return ReflectionCallTest.ComplexParamsInOut (RemoteObject, ref a, out b, c);
|
|
|
+ return ReflectionCallTest.ComplexParamsInOut (typeof (IRemoteObject), RemoteObject, ref a, out b, c);
|
|
|
}
|
|
|
}
|
|
|
}
|