internal static void CheckAndThrowError(OpenSlideImageSafeHandle osr) { string message = OpenSlideInterop.GetError(osr); if (message != null) { ThrowOpenSlideException(message); } }
internal static bool TryCheckError(OpenSlideImageSafeHandle osr, out string message) { message = OpenSlideInterop.GetError(osr); return(message == null); }