public Attribute GetAttribute(int i) { if (i >= 0 && i < this.attributes.Count) { Attribute a = (Attribute) this.attributes[i]; return a; } return null; }