public static string ToString(ImagePostMode mode) { switch (mode) { case ImagePostMode.Raw: return "raw"; case ImagePostMode.NotRaw: return "not-raw"; default: throw new ArgumentException("Invalid ImagePostMode"); } }
public static string ToString(ImagePostMode mode) { switch (mode) { case ImagePostMode.Raw: return("raw"); case ImagePostMode.NotRaw: return("not-raw"); default: throw new ArgumentException("Invalid ImagePostMode"); } }