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