Ejemplo n.º 1
0
 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";
     }
 }
Ejemplo n.º 2
0
        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");
        }
Ejemplo n.º 3
0
        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");
            }
        }
Ejemplo n.º 4
0
        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);
        }
Ejemplo n.º 5
0
        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);
        }
Ejemplo n.º 6
0
 public static string ToString(vif_operations x)
 {
     return(x.StringOf());
 }