我有以下VB.net接口,我需要移植到C#.C#不允许接口中的枚举.如何在不更改使用此接口的代码的情况下移植它?
Public Interface MyInterface
Enum MyEnum
Yes = 0
No = 1
Maybe = 2
End Enum
ReadOnly Property Number() As MyEnum
End Interface
Run Code Online (Sandbox Code Playgroud)