* MethodBase.cs MonoMethod.cs: Implement 2.0 GetMethodBody ().
svn path=/trunk/mcs/; revision=39110
+2005-01-18 Zoltan Varga <vargaz@freemail.hu>
+
+ * MethodBase.cs MonoMethod.cs: Implement 2.0 GetMethodBody ().
+
2005-01-03 Martin Baulig <martin@ximian.com>
* MonoGenericMethod.cs
throw new NotSupportedException ();
}
}
+
+ [MethodImplAttribute (MethodImplOptions.InternalCall)]
+ internal extern static MethodBody GetMethodBodyInternal (IntPtr handle);
+
+ internal static MethodBody GetMethodBody (IntPtr handle) {
+ MethodBody mb = GetMethodBodyInternal (handle);
+ if (mb == null)
+ throw new ArgumentException ("Only methods with IL bodies are supported.");
+ else
+ return mb;
+ }
+
+ public virtual MethodBody GetMethodBody () {
+ throw new NotSupportedException ();
+ }
#endif
}
}
[MethodImplAttribute(MethodImplOptions.InternalCall)]
get;
}
+
+ public override MethodBody GetMethodBody () {
+ return GetMethodBody (mhandle);
+ }
#endif
}
return false;
}
}
+
+ public override MethodBody GetMethodBody () {
+ return GetMethodBody (mhandle);
+ }
#endif
public override string ToString () {