Пример #1
0
 private string GetMode(GravatarMode mode)
 {
     if (mode == GravatarMode.NotFound)
     {
         return("404");
     }
     return(mode.ToString().ToLower());
 }
Пример #2
0
 private static string GetModeValue(GravatarMode mode)
 {
     return(mode == GravatarMode.NotFound ? "404" : mode.ToString().ToLower());
 }
Пример #3
0
 private static string GetModeValue(GravatarMode mode) => (mode == GravatarMode.NotFound) ? "404" : mode.ToString().ToLower();
Пример #4
0
 public static string Value(this GravatarMode mode)
 => mode == GravatarMode.NotFound
            ? "404"
            : mode.ToString().ToLower();