public static string ToString(StudyTreatmentRole value) { if (value == StudyTreatmentRole.Investigational) { return("investigational"); } else if (value == StudyTreatmentRole.Comparative) { return("comparative"); } else if (value == StudyTreatmentRole.Current) { return("current"); } else { throw new ArgumentException("Unrecognized StudyTreatmentRole value: " + value.ToString()); } }
public static bool TryParse(string value, out StudyTreatmentRole result) { result = default(StudyTreatmentRole); if (value == "investigational") { result = StudyTreatmentRole.Investigational; } else if (value == "comparative") { result = StudyTreatmentRole.Comparative; } else if (value == "current") { result = StudyTreatmentRole.Current; } else { return(false); } return(true); }
public static bool TryParse(string value, out StudyTreatmentRole result) { result = default(StudyTreatmentRole); if( value=="investigational") result = StudyTreatmentRole.Investigational; else if( value=="comparative") result = StudyTreatmentRole.Comparative; else if( value=="current") result = StudyTreatmentRole.Current; else return false; return true; }
public static string ToString(StudyTreatmentRole value) { if( value==StudyTreatmentRole.Investigational ) return "investigational"; else if( value==StudyTreatmentRole.Comparative ) return "comparative"; else if( value==StudyTreatmentRole.Current ) return "current"; else throw new ArgumentException("Unrecognized StudyTreatmentRole value: " + value.ToString()); }