public static string stringFromType(TypeTypeKnownValues the_enum) { switch (the_enum) { case TypeTypeKnownValues.Type_TypeMismatch: return("TypeMismatch"); case TypeTypeKnownValues.Type_InvalidDensity: return("InvalidDensity"); case TypeTypeKnownValues.Type_UnnecessaryDensity: return("UnnecessaryDensity"); case TypeTypeKnownValues.Type_NoValidInputFound: return("NoValidInputFound"); case TypeTypeKnownValues.Type_NoValidOutputFound: return("NoValidOutputFound"); case TypeTypeKnownValues.Type_BadAdjective: return("BadAdjective"); default: Debug.Assert(false); return(null); } }
public void setType(TypeTypeKnownValues new_value) { TypeType new_full_value = new TypeType(); Debug.Assert(new_value != TypeTypeKnownValues.Type__none); new_full_value.in_known_list = true; new_full_value.list_value = new_value; setType(new_full_value); }
public static string stringFromType(TypeTypeKnownValues the_enum) { switch (the_enum) { case TypeTypeKnownValues.Type_BadResponse: return("BadResponse"); case TypeTypeKnownValues.Type_CodeNotFound: return("CodeNotFound"); default: Debug.Assert(false); return(null); } }
protected override void handle_result(string result) { TypeTypeKnownValues known = stringToType(result); TypeType new_value = new TypeType(); if (known == TypeTypeKnownValues.Type__none) { new_value.in_known_list = false; new_value.string_value = result; } else { new_value.in_known_list = true; new_value.list_value = known; } handle_result(new_value); }
public void setType(string chars) { TypeTypeKnownValues known = stringToType(chars); TypeType new_value = new TypeType(); if (known == TypeTypeKnownValues.Type__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } setType(new_value); }