public static Warning ( Tiff tif, string method, string format ) : void | ||
tif | Tiff | An instance of the |
method | string | The method in which a warning is detected. |
format | string | A composite format string (see Remarks). |
return | void |
private bool writeOK(byte[] buffer, int offset, int count) { try { m_stream.Write(m_clientdata, buffer, offset, count); } catch (Exception) { Tiff.Warning(this, "writeOK", "Failed to write {0} bytes", count); return(false); } return(true); }
private bool writeOK(byte[] buffer, int offset, int count) { try { m_stream.Write(m_clientdata, buffer, offset, count); } #pragma warning disable CA1031 // Do not catch general exception types catch (Exception) #pragma warning restore CA1031 // Do not catch general exception types { Tiff.Warning(this, "writeOK", "Failed to write {0} bytes", count); return(false); } return(true); }