Here are some changes I made based on the way you are using your list. NOTE: I didn't compile, but I believe is OK:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
namespace TESTpractice
{
class Program
{
static void Main(string[] args)
{
Program t = new Program();
t.Run();
}
public void Run()
{
Insect insects = new Insect(8, 8, "Ugly Spider", "Arachnida"); // if need to use contsructor
insects.Add (8, 8, "Black Widow", "Arachnida"); // add method
insects.Add (8, 8, "Brown Spider", "Arachnida");
insects.getInfoAll(); // print out entire list
}
}
public class Insect
{
public List<Insect> insects = new List<Insect>();
public int Eyes { get; set; }
public int Legs { get; set; }
public string Species { get; set; }
public string Family { get; set; }
public Insect()
{
}
public Insect(int myEyes, int myLegs, string mySpecies, string myFamily)
{
Add(myEyes, myLegs, mySpecies, myFamily);
}
public void Add (int myEyes, int myLegs, string mySpecies, string myFamily)
{
Eyes = myEyes;
Legs = myLegs;
Species = mySpecies;
Family = myFamily;
insects.Add(this);
}
public void getInfo()
{
Console.WriteLine(" Species: {0} \n Family: {1} \n Number of eyes: {2}\n Number of legs: {3}",
Species, Family, Eyes.ToString(), Legs.ToString());
}
public void getInfoAll()
{
foreach (Insect insect in insects)
{
insect.getInfo();
}
}
}
}