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