using System; namespace ScreenConnect; public class DesktopInfo : IDisposable { public HandleMinder Handle { get; } public string Name { get; } public DesktopInfo(HandleMinder handle, string name) { Handle = handle; Name = name; } public override string ToString() { return Name; } public void Dispose() { if (Handle != null) { Handle.Dispose(); } } }