System.Xml.XmlReaderSettings.CheckReadOnly C# (CSharp) Method

CheckReadOnly() private method

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