Is it possible to use a generic enum type when creating an interface? Something like…
public IListener
{
void OnValueChanged(Dictionary<enum,Color> dictionary);
}
Or would you have to use an existing enum that’s already defined somewhere? Would a simple public enum work for this?
I would like to pass a dictionary as an argument for the method with enums as keys, but unsure how to go about it. Any insight would be appreciated, thanks.