This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
namespace ConsoleApp1 | |
{ | |
class TypeBase<TInterface> | |
{ | |
public virtual Type TheInnerType { get; } | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! dotnet run | |
#:sdk Microsoft.NET.Sdk | |
#:property UseWindowsForms True | |
#:property TargetFramework net10.0-windows | |
using System.Windows.Forms; | |
var screens = Screen.AllScreens.Select(scr => (Screen: scr, Index : int.Parse(scr.DeviceName.Split("DISPLAY").Last()) - 1)); | |
int firstScreenIdx = -1; | |
List<int> otherScreens = []; |