Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ RegisterEntity()

void System.Xml.XmlTextReaderImpl.RegisterEntity ( IDtdEntityInfo entity)
inlineprivate

Definition at line 7270 of file XmlTextReaderImpl.cs.

7271 {
7272 if (_currentEntities != null && _currentEntities.ContainsKey(entity))
7273 {
7274 Throw(entity.IsParameterEntity ? System.SR.Xml_RecursiveParEntity : System.SR.Xml_RecursiveGenEntity, entity.Name, _parsingStatesStack[_parsingStatesStackTop].LineNo, _parsingStatesStack[_parsingStatesStackTop].LinePos);
7275 }
7276 _ps.entity = entity;
7278 if (entity != null)
7279 {
7280 if (_currentEntities == null)
7281 {
7283 }
7284 _currentEntities.Add(entity, entity);
7285 }
7286 }
void Add(TKey key, TValue value)
static string Xml_RecursiveParEntity
Definition SR.cs:122
Definition SR.cs:7
Dictionary< IDtdEntityInfo, IDtdEntityInfo > _currentEntities
void Throw(int pos, string res, string arg)

References System.Xml.XmlTextReaderImpl._currentEntities, System.Xml.XmlTextReaderImpl._nextEntityId, System.Xml.XmlTextReaderImpl._parsingStatesStack, System.Xml.XmlTextReaderImpl._parsingStatesStackTop, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.ContainsKey(), System.Xml.Dictionary, System.Xml.IDtdEntityInfo.IsParameterEntity, System.Xml.XmlTextReaderImpl.ParsingState.LineNo, System.Xml.XmlTextReaderImpl.ParsingState.LinePos, System.Xml.IDtdEntityInfo.Name, System.Xml.XmlTextReaderImpl.Throw(), System.SR.Xml_RecursiveGenEntity, and System.SR.Xml_RecursiveParEntity.

Referenced by System.Xml.XmlTextReaderImpl.PushExternalEntity(), System.Xml.XmlTextReaderImpl.PushExternalEntityAsync(), and System.Xml.XmlTextReaderImpl.PushInternalEntity().