public override string execute(Blackfin bf, string[] args) { try { switch (int.Parse(args[0])) { case 1: return(bf.GetDNS1().ToString()); case 2: return(bf.GetDNS2().ToString()); case 3: return(bf.GetDNS3().ToString()); } } catch (FormatException) { } catch (OverflowException) { } throw new CommandArgumentException("Invalid DNS slot value"); }