Example #1
0
 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());
     }
 }
Example #2
0
            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);
            }
Example #3
0
            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;
            }
Example #4
0
 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());
 }