static int GetILOffset (ILGenerator ig) { #if NET_4_0 || STATIC return ig.ILOffset; #else if (get_il_offset_func == null) Initialize (); return get_il_offset_func (ig); #endif }