Ver Mensaje Individual
  #5 (permalink)  
Antiguo 17/06/2011, 14:22
Avatar de Darsk
Darsk
 
Fecha de Ingreso: mayo-2011
Mensajes: 39
Antigüedad: 13 años
Puntos: 0
Respuesta: Problema con referencias

Si, es publico y estatico, saludos.





public static IEnumerator<Cliente> mostrarClientes()
{
Conexion con = new Conexion();
con.setQuery("select * from cliente");
SqlDataReader reader = con.ejecutarSelect();

while (reader.Read())
{
Cliente c = new Cliente();
c.Rut = reader.GetInt32(0);
c.Nombre = reader.GetString(1);
c.Direccion = reader.GetString(2);
listaCliente.Add(c);
}


}

Última edición por Darsk; 17/06/2011 a las 14:25 Razón: faltaba codigo