public DBParameter this[int index] { get { DBParameter param=null; switch(this.ParameterCollectionType()) { case DataAccessType.SqlClient: param=new DBParameter((this._this as SqlParameterCollection)[index]);break; case DataAccessType.OLEDB: param=new DBParameter((this._this as OleDbParameterCollection)[index]);break; case DataAccessType.ODPNet: param=new DBParameter((this._this as OracleParameterCollection)[index]);break; } return param; } }