11 references to new
System.Drawing.Common.Tests (6)
System\Drawing\IconTests.cs (6)
98Icon icon = new(stream); 108Icon icon = new(stream); 145AssertExtensions.Throws<ArgumentNullException, ArgumentException>("stream", null, () => new Icon((Stream)null)); 215Assert.Throws(exceptionType, () => new Icon(stream)); 630return new Icon(stream); 720using Icon loaded = new(outputStream);
System.Windows.Forms (1)
System\Resources\ResxFileRef.Converter.cs (1)
141Icon ico = new(memoryStream);
System.Windows.Forms.Design (2)
System\Drawing\Design\IconEditor.cs (1)
107protected virtual Icon LoadFromStream(Stream stream) => new(stream);
System\Windows\Forms\Design\ImageListImage.cs (1)
54return new ImageListImage((new Icon(stream)).ToBitmap());
System.Windows.Forms.Design.Tests (1)
System\Windows\Forms\Design\EmbeddedResourceTests.cs (1)
95using Icon icon = new(stream);
System.Windows.Forms.Tests (1)
System\Windows\Forms\EmbeddedResourceTests.cs (1)
207using Icon icon = new(stream);