Exemplo n.º 1
0
 public static string ToString(network_operations x)
 {
     if (x == network_operations.attaching)
     {
         return("attaching");
     }
     return("unknown");
 }
Exemplo n.º 2
0
 public static string ToString(network_operations x)
 {
     switch (x)
     {
         case network_operations.attaching:
             return "attaching";
         default:
             return "unknown";
     }
 }
Exemplo n.º 3
0
        public static string ToString(network_operations x)
        {
            switch (x)
            {
            case network_operations.attaching:
                return("attaching");

            default:
                return("unknown");
            }
        }
Exemplo n.º 4
0
        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);
        }
Exemplo n.º 5
0
        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);
        }
Exemplo n.º 6
0
 public static string ToString(network_operations x)
 {
     return(x.StringOf());
 }