Exemplo n.º 1
0
        private DiscreteValue Add(string value)
        {
            // No dups
            int id = m_list.Count;
            var d  = new DiscreteValue(this, id);

            m_list.Add(d);

            string x = value.ToUpperInvariant();

            m_strings.Add(x);

            m_map.Add(x, id);
            return(d);
        }
Exemplo n.º 2
0
        private DiscreteValue Add(string value)
        {
            // No dups
            int id = m_list.Count;
            var d = new DiscreteValue(this, id);
            m_list.Add(d);

            string x = value.ToUpperInvariant();
            m_strings.Add(x);

            m_map.Add(x, id);
            return d;
        }