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