Пример #1
0
        public void Add(ClParameter p)
        {
            if (p==null)
                throw new ArgumentNullException("p");

            this.shortParameters.Add(p.ShortName,p);
            this.parameters.Add(p.Name,p);
        }
 /// <summary>
 /// Adds an element with the specified key and value to this StringClParameterDictionary.
 /// </summary>
 /// <param name="key">
 /// The String key of the element to add.
 /// </param>
 /// <param name="value">
 /// The ClParameter value of the element to add.
 /// </param>
 public virtual void Add(String key, ClParameter value)
 {
     this.Dictionary.Add(key, value);
 }
 /// <summary>
 /// Determines whether this StringClParameterDictionary contains a specific value.
 /// </summary>
 /// <param name="value">
 /// The ClParameter value to locate in this StringClParameterDictionary.
 /// </param>
 /// <returns>
 /// true if this StringClParameterDictionary contains an element with the specified value;
 /// otherwise, false.
 /// </returns>
 public virtual bool ContainsValue(ClParameter value)
 {
     foreach (ClParameter item in this.Dictionary.Values)
     {
         if (item == value)
             return true;
     }
     return false;
 }