10 references to Cursor
System.Windows.Forms (3)
System\Windows\Forms\Input\Cursor.cs (2)
46: this(typeof(Cursors).Assembly.GetManifestResourceStream(typeof(Cursor), resource).OrThrowIfNull()) 84: this(type.OrThrowIfNull().Module.Assembly.GetManifestResourceStream(type, resource)!)
System\Windows\Forms\Input\CursorConverter.cs (1)
70return new Cursor(ms);
System.Windows.Forms.Tests (7)
System\Windows\Forms\CursorConverterTests.cs (1)
131using Cursor sourceCursor = new(stream);
System\Windows\Forms\CursorTests.cs (5)
69using Cursor cursor = new(stream); 81using Cursor cursor = new(stream); 88Assert.Throws<ArgumentException>("stream", () => new Cursor(new MemoryStream())); 94Assert.Throws<ArgumentNullException>("stream", () => new Cursor((Stream)null)); 113Assert.Throws<ArgumentException>("stream", () => new Cursor(stream));
System\Windows\Forms\EmbeddedResourceTests.cs (1)
238using Cursor cursor = new(stream);