private void CheckReadOnly(string propertyName) { if (_isReadOnly) { throw new XmlException(SR.Xml_ReadOnlyProperty, this.GetType().Name + '.' + propertyName); } }