internal static Delegate GetDelegateForFunctionPointerInternal(IntPtr ptr, Type t) { return(PInvokeMarshal.GetDelegateForFunctionPointer(ptr, t.TypeHandle)); }