static bool ValidarValor(string datoValor, string[] arregloValores) { bool esValida = false; for (int i = 0; i < arregloValores.Length; i++) if (arregloValores[i] == datoValor) esValida = true; return esValida; }