Archive for Octubre, 2009

Array

13 Octubre 2009

void LlenarArray()
{
string[] names = { “ArrUno”, “ArrDos”, “ArrTres” };
LeerArray(names);
[...]

Dictionary

13 Octubre 2009

using System.Collections.Generic;
void LlenarDictionary()
{
Dictionary Dic = new Dictionary();
Dic.Add(0, “DicUno”);
[...]

Hashtable

13 Octubre 2009

using System.Collections;
void LlenarHastable()
{
Hashtable Table = new Hashtable();
Table.Add(0, “HasUno”);
[...]

List

13 Octubre 2009

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 < [...]