private void button2_Click(object sender, EventArgs e) { int size = getSize(); clase[] vectorClase = new clase[size]; for (int i = 0; i < vectorClase.Length; i++) { vectorClase[i] = new clase(); } }