System.Xml.DtdParser.AddUndeclaredNotation C# (CSharp) Méthode

AddUndeclaredNotation() private méthode

private AddUndeclaredNotation ( string notationName ) : void
notationName string
Résultat void
        private void AddUndeclaredNotation(string notationName)
        {
            if (_undeclaredNotations == null)
            {
                _undeclaredNotations = new Dictionary<string, UndeclaredNotation>();
            }
            UndeclaredNotation un = new UndeclaredNotation(notationName, LineNo, LinePos - notationName.Length);
            UndeclaredNotation loggedUn;
            if (_undeclaredNotations.TryGetValue(notationName, out loggedUn))
            {
                un.next = loggedUn.next;
                loggedUn.next = un;
            }
            else
            {
                _undeclaredNotations.Add(notationName, un);
            }
        }
#endif