This project has moved and is read-only. For the latest updates, please go here.

Simpler implementation for HtmlNameTable?

Topics: Developer Forum
Jan 18, 2008 at 2:01 AM
Edited Jan 18, 2008 at 2:01 AM
Is there a reason that HtmlNameTable isn't implemented as:

    internal class HtmlNameTable : NameTable
        internal string GetOrAdd(string array)
            string s = Get(array);
            if (s == null) 
                s = Add(array);
            return s;

This is simpler and more straight-forward than the current version. It also solves a problem that I'm having with the Mvp.Xml.Exslt ExsltContext object that expects (for better or for worse) that it can cast an XmlNameTable into a NameTable.