internal void Add(ParameterSet pSet)
 {
     if ( pSet == null )
         throw new ArgumentNullException("pSet");
     ParameterSet ps = Find(pSet.SetName);
     if ( ps != null )
         throw new ArgumentException("Duplicate parameter sets not allowed.");
     pSets.Add(pSet);
 }
 /// <summary>
 /// Returns a new parameter set.
 /// </summary>
 /// <param name="setName"></param>
 /// <returns></returns>
 internal static ParameterSet CreateParameterSet(string setName)
 {
     ParameterSet pSet = new ParameterSet(setName);
     return pSet;
 }