I created an extenstion method on my custom enum type like
public static class GetLocEnum
{
private static string Translate(this MyEnum e, int lang)
{
string res = string.Empty;
if (lang == 1)
{
switch (e)
{
case MyEnum.OptionOne:
res = "some title";
break;
case MyEnum.OptionTwo:
res = "some title 2";
break;
case MyEnum.OptionThree:
res = "some title 3";
break;
}
}
// more if's ...
return res;
}
}
Why I'm not able now to use this as extension in MyEnum.Translate()
?