示例#1
0
        void getEnumeratedValue(Attribute attribute, bool useNames, Hashtable enums)
        {
            string name;

            discardWhitespace();
            name = useNames ? getName() : getNmtoken();
            if (enums.ContainsKey(name))
                throwXMLMiddlewareException("Enumerated values must be unique: " + name);
            attribute.AddEnumeratedValue(name);
            discardWhitespace();
        }