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"; } }
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"); }
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"); } }
public static string ToString(on_normal_exit x) { return(x.StringOf()); }