diff --git a/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.cs b/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.cs index 55a880becb5..441809b55b1 100644 --- a/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.cs +++ b/src/System.Drawing.Common/src/System/Drawing/Printing/PrinterSettings.cs @@ -371,7 +371,7 @@ public PrintRange PrintRange get { return _printRange; } set { - if (!Enum.IsDefined(typeof(PrintRange), value)) + if (!Enum.IsDefined(value)) throw new InvalidEnumArgumentException(nameof(value), unchecked((int)value), typeof(PrintRange)); _printRange = value;