Exemplo n.º 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());
     }
 }
Exemplo n.º 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);
            }
Exemplo n.º 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;
            }
Exemplo n.º 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());
 }