C# Enum Type Automatic-Figure-It-Out-er

I want this:

public enum MeowSound
{
  Angry = 1,
  Happy = 2
}

public class Cat
{
  public void Meow(MeowSound meowSound)
  {
    // Do stuff
  }

  public void AngryMeow()
  {
    // Meow(MeowSound.Angry) // I don't want this.
    Meow(Angry);  // I want this.
  }
}

That is all.

Post a Comment

*Required
*Required (Never published)