}
#if NET_2_0
+#if !TARGET_JVM // MethodBody is not supported for TARGET_JVM
[Test]
public void GetMethodBody_Abstract () {
MethodBody mb = typeof (ICloneable).GetMethod ("Clone").GetMethodBody ();
Assert.IsNull (mb);
}
}
-#if !TARGET_JVM
+
public static void locals_method () {
byte[] b = new byte [10];
}
}
}
-#endif
+
[Test]
public void GetMethodBody () {
MethodBody mb = typeof (MethodInfoTest).GetMethod ("locals_method").GetMethodBody ();
else
Assert.AreEqual (false, locals [1].IsPinned, "#6");
}
+#endif // TARGET_JVM
public int return_parameter_test () {
return 0;
//Assert.AreEqual (True, pi.IsRetval);
}
+#if !TARGET_JVM // ReflectionOnly is not supported yet on TARGET_JVM
[Test]
[ExpectedException (typeof (InvalidOperationException))]
public void InvokeOnRefOnlyAssembly ()
m.Invoke (null, new object [0]);
}
+#endif // TARGET_JVM
[Test]
public void InvokeGenericVtype ()