How to represent an Enum in an Interface?

public enum MyEnum
{
  Hurr,
  Durr
}

public interface MyInterface
{
  void MyMethod(MyEnum value);
}

If this isn’t what you’re talking about doing, leave a comment so people can understand what your issue is. Because, while the enum isn’t defined within the interface, this is a completely normal and acceptable design.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)