public static string GetBooleanAsString(bool value) { switch (value) { case true: return "yes"; case false: return "no"; default: return "no"; } }