public static string ToString(StudyControlType value) { if (value == StudyControlType.Placebo) { return("placebo"); } else if (value == StudyControlType.Active) { return("active"); } else if (value == StudyControlType.Historical) { return("historical"); } else if (value == StudyControlType.Uncontrolled) { return("uncontrolled"); } else if (value == StudyControlType.DoseComparison) { return("dose comparison"); } else { throw new ArgumentException("Unrecognized StudyControlType value: " + value.ToString()); } }
public static bool TryParse(string value, out StudyControlType result) { result = default(StudyControlType); if (value == "placebo") { result = StudyControlType.Placebo; } else if (value == "active") { result = StudyControlType.Active; } else if (value == "historical") { result = StudyControlType.Historical; } else if (value == "uncontrolled") { result = StudyControlType.Uncontrolled; } else if (value == "dose comparison") { result = StudyControlType.DoseComparison; } else { return(false); } return(true); }
public static bool TryParse(string value, out StudyControlType result) { result = default(StudyControlType); if( value=="placebo") result = StudyControlType.Placebo; else if( value=="active") result = StudyControlType.Active; else if( value=="historical") result = StudyControlType.Historical; else if( value=="uncontrolled") result = StudyControlType.Uncontrolled; else if( value=="dose comparison") result = StudyControlType.DoseComparison; else return false; return true; }
public static string ToString(StudyControlType value) { if( value==StudyControlType.Placebo ) return "placebo"; else if( value==StudyControlType.Active ) return "active"; else if( value==StudyControlType.Historical ) return "historical"; else if( value==StudyControlType.Uncontrolled ) return "uncontrolled"; else if( value==StudyControlType.DoseComparison ) return "dose comparison"; else throw new ArgumentException("Unrecognized StudyControlType value: " + value.ToString()); }