Esempio n. 1
0
 internal void Add(string name, ParameterImpl parameter)
 {
     Global.Tracer.Assert(m_collection != null, "(null != m_collection)");
     Global.Tracer.Assert(m_nameMap != null, "(null != m_nameMap)");
     Global.Tracer.Assert(m_count < m_collection.Length, "(m_count < m_collection.Length)");
     m_nameMap.Add(name, m_count);
     m_collection[m_count] = parameter;
     m_count++;
 }
Esempio n. 2
0
        internal bool ValuesAreEqual(ParameterImpl obj)
        {
            if (!m_isUserSupplied)
            {
                return(true);
            }
            int count = Count;

            if (obj == null || count != obj.Count)
            {
                return(false);
            }
            object[] values = obj.GetValues();
            for (int i = 0; i < count; i++)
            {
                if (!object.Equals(m_value[i], values[i]))
                {
                    return(false);
                }
            }
            return(true);
        }