1
public static string GetCustomerIssueStatus(this HtmlHelper html, byte number)
{
    return Enum.GetName(typeof(Shared.Enumerators.CustomerIssueStatus), number);
}

How could I create this extension method, to accept all enum types as parameter?

sensei
  • 7,044
  • 10
  • 57
  • 125
  • You want extension method over `Enum`? – Rohit Vats Dec 23 '13 at 19:46
  • 5
    `Enum` isn't supported as a generic type parameter. See [Create Generic method constraining T to an Enum](http://stackoverflow.com/questions/79126/create-generic-method-constraining-t-to-an-enum). – Dustin Kingen Dec 23 '13 at 19:48

0 Answers0