4 references to new
System.Drawing.Common.Tests (3)
System\Drawing\IconTests.cs (3)
136using Icon icon = new(stream, size); 147AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null, new Size(32, 32))); 751using Icon icon = new(stream, new Size(32, 32));
System.Windows.Forms.Primitives (1)
System\Windows\Forms\Internals\ScaleHelper.cs (1)
350using Icon icon = new(resourceStream, size.IsEmpty ? SystemIconSize : size);