Exemple #1
0
 public static string ToString(on_normal_exit x)
 {
     switch (x)
     {
         case on_normal_exit.destroy:
             return "destroy";
         case on_normal_exit.restart:
             return "restart";
         default:
             return "unknown";
     }
 }
Exemple #2
0
        public static string ToString(on_normal_exit x)
        {
            switch (x)
            {
            case on_normal_exit.destroy:
                return("destroy");

            case on_normal_exit.restart:
                return("restart");
            }
            return("unknown");
        }
Exemple #3
0
        public static string StringOf(this on_normal_exit x)
        {
            switch (x)
            {
            case on_normal_exit.destroy:
                return("destroy");

            case on_normal_exit.restart:
                return("restart");

            default:
                return("unknown");
            }
        }
Exemple #4
0
 public static string ToString(on_normal_exit x)
 {
     return(x.StringOf());
 }