- public bool Initialize ()
- {
- MethodInfo mi;
-#if !NET_4_0
- mi = typeof (ILGenerator).GetMethod (
- "Mono_GetCurrentOffset",
- BindingFlags.Static | BindingFlags.NonPublic);
- if (mi == null)
- return false;
-
- get_il_offset_func = (GetILOffsetFunc) System.Delegate.CreateDelegate (
- typeof (GetILOffsetFunc), mi);