NullReferenceException
This commit is contained in:
@ -66,12 +66,12 @@ public sealed class Image : DisposableObject
|
||||
/// </summary>
|
||||
/// <param name="filename">A string that contains the name of the file to which to save this <see cref="Image"/>.</param>
|
||||
/// <param name="format">The <see cref="ImageFormat"/> for this <see cref="Image"/>.</param>
|
||||
/// <exception cref="ArgumentNullException"><paramref name="filename"/> is null.</exception>
|
||||
/// <exception cref="NullReferenceException"><paramref name="filename"/> is null.</exception>
|
||||
/// <exception cref="ObjectDisposedException">This object is disposed.</exception>
|
||||
public void Save(string filename, ImageFormat format)
|
||||
{
|
||||
if (filename == null)
|
||||
throw new ArgumentNullException(nameof(filename));
|
||||
throw new NullReferenceException(nameof(filename));
|
||||
|
||||
ThrowIfDisposed();
|
||||
|
||||
|
Reference in New Issue
Block a user