I recently implemented an SFTP wrapper using SSH.Net and, I wanted to make it available in Nuget.org.
There can be situations, where you need to set an Enumas a generic constraint.
Enum
According to this SO answer finally it’s supported from C# 7.3,