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

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