public static UrlValue ( this s ) : string | ||
s | this | |
Результат | string |
public static string UrlValue(this LawStage s)
{
switch (s)
{
case LawStage.First: return 1.ToString();
case LawStage.Second: return 2.ToString();
case LawStage.Third: return 3.ToString();
default: throw new ArgumentException();
}
}