public void setPlatform(TypePlatformKnownValues new_value) { TypePlatform new_full_value = new TypePlatform(); Debug.Assert(new_value != TypePlatformKnownValues.Platform__none); new_full_value.in_known_list = true; new_full_value.list_value = new_value; setPlatform(new_full_value); }
public static string stringFromPlatform(TypePlatformKnownValues the_enum) { switch (the_enum) { case TypePlatformKnownValues.Platform_Android: return("Android"); case TypePlatformKnownValues.Platform_iOS: return("iOS"); default: Debug.Assert(false); return(null); } }
protected override void handle_result(string result) { TypePlatformKnownValues known = stringToPlatform(result); TypePlatform new_value = new TypePlatform(); if (known == TypePlatformKnownValues.Platform__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 setPlatform(string chars) { TypePlatformKnownValues known = stringToPlatform(chars); TypePlatform new_value = new TypePlatform(); if (known == TypePlatformKnownValues.Platform__none) { new_value.in_known_list = false; new_value.string_value = chars; } else { new_value.in_known_list = true; new_value.list_value = known; } setPlatform(new_value); }