internal static void CheckForException(IntPtrAction funcMethod) { IntPtr e = IntPtr.Zero; funcMethod.Invoke(ref e); WrapException.CheckAnyException(ref e); }
internal static R CheckForException <R>(IntPtrFunc <R> funcMethod) { IntPtr e = IntPtr.Zero; R result = funcMethod.Invoke(ref e); WrapException.CheckAnyException(ref e); return(result); }