Пример #1
0
        public object Clone()
        {
            ParamsCollections collections = new ParamsCollections();

            foreach (ParamItem item in this)
            {
                ParamItem paramItem = new ParamItem();
                paramItem.ParamName      = item.ParamName;
                paramItem.TableName      = item.TableName;
                paramItem.TableAliasName = item.TableAliasName;
                collections.Add(paramItem);
            }
            return(collections);
        }
Пример #2
0
 public ParamItem this[string paramName]
 {
     get
     {
         for (int i = 0; i < base.Count; i++)
         {
             ParamItem item = (ParamItem)base.List[i];
             if (item.ParamName == paramName)
             {
                 return(item);
             }
         }
         return(null);
     }
 }
Пример #3
0
 public void Add(ParamItem paramItem)
 {
     base.List.Add(paramItem);
 }