public static string ToString(task_allowed_operations x) { if (x == task_allowed_operations.cancel) { return("cancel"); } return("unknown"); }
public static string ToString(task_allowed_operations x) { switch (x) { case task_allowed_operations.cancel: return "cancel"; default: return "unknown"; } }
public static string ToString(task_allowed_operations x) { switch (x) { case task_allowed_operations.cancel: return("cancel"); default: return("unknown"); } }
public static string ToString(task_allowed_operations x) { switch (x) { case task_allowed_operations.cancel: return("cancel"); case task_allowed_operations.destroy: return("destroy"); } return("unknown"); }
public static string StringOf(this task_allowed_operations x) { switch (x) { case task_allowed_operations.cancel: return("cancel"); case task_allowed_operations.destroy: return("destroy"); default: return("unknown"); } }
internal static Dictionary <string, task_allowed_operations> convert_from_proxy_string_task_allowed_operations(object o) { Hashtable hashtable = (Hashtable)o; Dictionary <string, task_allowed_operations> dictionary = new Dictionary <string, task_allowed_operations>(); if (hashtable != null) { foreach (string str in hashtable.Keys) { try { string str2 = str; task_allowed_operations _operations = (hashtable[str] == null) ? task_allowed_operations.cancel : ((task_allowed_operations)Helper.EnumParseDefault(typeof(task_allowed_operations), (string)hashtable[str])); dictionary[str2] = _operations; } catch { } } } return(dictionary); }
convert_from_proxy_string_task_allowed_operations(Object o) { Hashtable table = (Hashtable)o; Dictionary <string, task_allowed_operations> result = new Dictionary <string, task_allowed_operations>(); if (table != null) { foreach (string key in table.Keys) { try { string k = key; task_allowed_operations v = table[key] == null ? (task_allowed_operations)0 : (task_allowed_operations)Helper.EnumParseDefault(typeof(task_allowed_operations), (string)table[key]); result[k] = v; } catch { continue; } } } return(result); }
public static string ToString(task_allowed_operations x) { return(x.StringOf()); }