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); }
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); } }
public void Add(ParamItem paramItem) { base.List.Add(paramItem); }