Example #1
0
        public static string ToString(vusb_operations x)
        {
            switch (x)
            {
            case vusb_operations.attach:
                return("attach");

            case vusb_operations.plug:
                return("plug");

            case vusb_operations.unplug:
                return("unplug");

            default:
                return("unknown");
            }
        }
Example #2
0
        convert_from_proxy_string_vusb_operations(Object o)
        {
            Hashtable table = (Hashtable)o;
            Dictionary <string, vusb_operations> result = new Dictionary <string, vusb_operations>();

            if (table != null)
            {
                foreach (string key in table.Keys)
                {
                    try
                    {
                        string          k = key;
                        vusb_operations v = table[key] == null ? (vusb_operations)0 : (vusb_operations)Helper.EnumParseDefault(typeof(vusb_operations), (string)table[key]);
                        result[k] = v;
                    }
                    catch
                    {
                        continue;
                    }
                }
            }
            return(result);
        }
Example #3
0
 public static string ToString(vusb_operations x)
 {
     return(x.StringOf());
 }