public static string ToString(ConditionRelationshipType value)
 {
     if (value == ConditionRelationshipType.DueTo)
     {
         return("due-to");
     }
     else if (value == ConditionRelationshipType.Following)
     {
         return("following");
     }
     else
     {
         throw new ArgumentException("Unrecognized ConditionRelationshipType value: " + value.ToString());
     }
 }
            public static bool TryParse(string value, out ConditionRelationshipType result)
            {
                result = default(ConditionRelationshipType);

                if (value == "due-to")
                {
                    result = ConditionRelationshipType.DueTo;
                }
                else if (value == "following")
                {
                    result = ConditionRelationshipType.Following;
                }
                else
                {
                    return(false);
                }

                return(true);
            }
            public static bool TryParse(string value, out ConditionRelationshipType result)
            {
                result = default(ConditionRelationshipType);

                if( value=="due-to")
                    result = ConditionRelationshipType.DueTo;
                else if( value=="following")
                    result = ConditionRelationshipType.Following;
                else
                    return false;

                return true;
            }
 public static string ToString(ConditionRelationshipType value)
 {
     if( value==ConditionRelationshipType.DueTo )
         return "due-to";
     else if( value==ConditionRelationshipType.Following )
         return "following";
     else
         throw new ArgumentException("Unrecognized ConditionRelationshipType value: " + value.ToString());
 }