diff --git a/csharp/Lib/Utils/SshHost.cs b/csharp/Lib/Utils/SshHost.cs index c8bb24023..f7fe6be1b 100644 --- a/csharp/Lib/Utils/SshHost.cs +++ b/csharp/Lib/Utils/SshHost.cs @@ -26,4 +26,8 @@ public class SshHost } public Task Ping() => HostName.Ping(); + + public static implicit operator SshHost(String hostname) => new SshHost(hostname); + + public override String ToString() => Command.ToString(); } \ No newline at end of file