List

using System.Collections.Generic;

void LlenarLista()
{
List List = new List();
List.Add(“ListUno”);
List.Add(“ListDos”);
List.Add(“ListTres”);
LeerLista(List);
}

void LeerLista(List Datos)
{
string dUno = Datos[0];
string dDos = Datos[1];
string dTres = Datos[2];

string valor;
for (int i = 0; i < Datos.Count; i++)
{
valor = Datos[i];
}
}

Deja un comentario

Fill in your details below or click an icon to log in:

Logo de WordPress.com

You are commenting using your WordPress.com account. Log Out / Cambiar )

Twitter picture

You are commenting using your Twitter account. Log Out / Cambiar )

Facebook photo

You are commenting using your Facebook account. Log Out / Cambiar )

Connecting to %s

Seguir

Get every new post delivered to your Inbox.