public static string AdTypeToString(AdType adType) { switch (adType) { case AdType.ForSale: return "For Sale"; case AdType.Wanted: return "Wanted"; default: return "(other)"; } }