internal string GetAttribute(int i) { if (isEndOfEmptyElement) throw System.Runtime.Serialization.DiagnosticUtility.ExceptionUtility.ThrowHelperError(new ArgumentOutOfRangeException(nameof(i), SR.Format(SR.XmlElementAttributes))); return reader.GetAttribute(i); }