private static String[] addContacts(String[] tk) { List <Contact> cl; if (tk.Length < 3) { return(str2arr("Missing arguments. Usage: addContacts <extServiceID> <extUserID,nameContact> [extUserID,nameContact] .. [extUserID,nameContact]")); } cl = sm.addContacts(tk.Skip(2).ToDictionary(k => k.Split(cma)[0], v => v.Split(cma)[1]), int.Parse(tk[1])); return(cl == null?str2arr("Error!") : cl.Select(c => c.contactID + "\t" + c.nameContact).ToArray()); }