public string this[string name]
 {
     get
     {
         ValuePair pair = Get(name);
         if (pair == null)
         {
             pair = new ValuePair() {Name = name};
             Items.Add(pair);
         }
         return pair.Value;
     }
     set
     {
         ValuePair pair = Get(name);
         if (pair == null)
         {
             pair = new ValuePair() {Name = name, Value = value};
             Items.Add(pair);
         }
         else
         {
             pair.Value = value;
         }
     }
 }
 public string this[string name]
 {
     get
     {
         ValuePair pair = Get(name);
         if (pair == null)
         {
             pair = new ValuePair()
             {
                 Name = name
             };
             Items.Add(pair);
         }
         return(pair.Value);
     }
     set
     {
         ValuePair pair = Get(name);
         if (pair == null)
         {
             pair = new ValuePair()
             {
                 Name = name, Value = value
             };
             Items.Add(pair);
         }
         else
         {
             pair.Value = value;
         }
     }
 }
 public void Add(ValuePair pair)
 {
     if (pair == null)
     {
         return;
     }
     foreach (ValuePair valuePair in Values)
     {
         if (pair.Name == valuePair.Name)
         {
             valuePair.Value      = pair.Value;
             valuePair.IsDisabled = pair.IsDisabled;
             return;
         }
     }
     Values.Add(pair);
 }
 public void Add(ValuePair pairParam)
 {
     if (pairParam == null)
         return;
     ValuePair pair = new ValuePair()
                          {
                              Name = pairParam.Name,
                              IsDisabled = pairParam.IsDisabled,
                              Value = pairParam.Value == null ? null : pairParam.Value.Replace('\0', ' ')
                          };
     foreach (ValuePair valuePair in Values)
     {
         if (pair.Name == valuePair.Name)
         {
             valuePair.Value = pair.Value;
             valuePair.IsDisabled = pair.IsDisabled;
             return;
         }
     }
     Values.Add(pair);
 }
        public void Add(ValuePair pairParam)
        {
            if (pairParam == null)
            {
                return;
            }
            ValuePair pair = new ValuePair()
            {
                Name       = pairParam.Name,
                IsDisabled = pairParam.IsDisabled,
                Value      = pairParam.Value == null ? null : pairParam.Value.Replace('\0', ' ')
            };

            foreach (ValuePair valuePair in Values)
            {
                if (pair.Name == valuePair.Name)
                {
                    valuePair.Value      = pair.Value;
                    valuePair.IsDisabled = pair.IsDisabled;
                    return;
                }
            }
            Values.Add(pair);
        }
 public ValuePair Add(ValuePair pair)
 {
     Items.Add(pair);
     return pair;
 }
 public ValuePair Add(ValuePair pair)
 {
     Items.Add(pair);
     return(pair);
 }