9 references to new
System.Windows.Forms (5)
System\Windows\Forms\Screen.cs (5)
115s_screens = screens.Count > 0 ? [.. screens] : [new(s_primaryMonitor)]; 251? new Screen(PInvokeCore.MonitorFromPoint(point, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST)) 252: new Screen(s_primaryMonitor); 259? new Screen(PInvokeCore.MonitorFromRect(rect, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST)) 277? new Screen(PInvokeCore.MonitorFromWindow((HWND)hwnd, MONITOR_FROM_FLAGS.MONITOR_DEFAULTTONEAREST))
System.Windows.Forms.Tests (4)
System\Windows\Forms\ScreenTests.cs (4)
38Screen screen = new((HMONITOR)(nint)1); 40yield return new object[] { screen, new Screen((HMONITOR)(nint)1), true }; 41yield return new object[] { screen, new Screen((HMONITOR)(nint)2), false }; 46Screen screen = new((HMONITOR)(nint)1);