public static string ToString(XdsEntryAvailability value) { if (value == XdsEntryAvailability.Approved) { return("Approved"); } else if (value == XdsEntryAvailability.Deprecated) { return("Deprecated"); } else { throw new ArgumentException("Unrecognized XdsEntryAvailability value: " + value.ToString()); } }
public static bool TryParse(string value, out XdsEntryAvailability result) { result = default(XdsEntryAvailability); if (value == "Approved") { result = XdsEntryAvailability.Approved; } else if (value == "Deprecated") { result = XdsEntryAvailability.Deprecated; } else { return(false); } return(true); }
public static bool TryParse(string value, out XdsEntryAvailability result) { result = default(XdsEntryAvailability); if( value=="Approved") result = XdsEntryAvailability.Approved; else if( value=="Deprecated") result = XdsEntryAvailability.Deprecated; else return false; return true; }
public static string ToString(XdsEntryAvailability value) { if( value==XdsEntryAvailability.Approved ) return "Approved"; else if( value==XdsEntryAvailability.Deprecated ) return "Deprecated"; else throw new ArgumentException("Unrecognized XdsEntryAvailability value: " + value.ToString()); }