public override void MoveToAttribute (int i) { if (i >= attr_count) throw new ArgumentOutOfRangeException (String.Format ("Specified attribute index is {0} and should be less than {1}", i, attr_count)); current_attr = i; current = attributes [i]; }