示例#1
0
 public void setGender(string chars)
 {
     SportsOlympicsAthleteGenderJSON.TypeValueKnownValues known     = SportsOlympicsAthleteGenderJSON.stringToValue(chars);
     SportsOlympicsAthleteGenderJSON.TypeValue            new_value = new SportsOlympicsAthleteGenderJSON.TypeValue();
     if (known == SportsOlympicsAthleteGenderJSON.TypeValueKnownValues.Value__none)
     {
         new_value.in_known_list = false;
         new_value.string_value  = chars;
     }
     else
     {
         new_value.in_known_list = true;
         new_value.list_value    = known;
     }
     setGender(new_value);
 }
示例#2
0
 public void setGender(SportsOlympicsAthleteGenderJSON.TypeValue new_value)
 {
     setGender(new SportsOlympicsAthleteGenderJSON(new_value));
 }