List<Animal> animals = new List();
public string Name { get { return _name; } set { _name = value; } } public string Specie { get { return _specie; } set { _specie = value; } }
private string RandomAnimal(Random r) { if (random.Next(2) == 0) { txtSpecie.Text = randomAnimal.Specie; return randomAnimal.Specie; } else { txtName.Text = randomAnimal.Name; return randomAnimal.Name; } }
C++
List<Animal> takeFromHere = new List<Animal>(animals)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)