public object Clone() { _SqlMetaDataSetCollection result = new _SqlMetaDataSetCollection(); result.metaDataSet = metaDataSet == null ? null : (_SqlMetaDataSet)metaDataSet.Clone(); foreach (_SqlMetaDataSet set in _altMetaDataSetArray) { result._altMetaDataSetArray.Add((_SqlMetaDataSet)set.Clone()); } return result; }