public Component[] ToArray() { Component[] res = null; if (this.Count > 0) { res = new Component[this.Count]; for (int i = 0; i < this.Count; i++) res[i] = this[i]; } return res; }