/// <inheritdoc/> IEnumerator <SqlDataRecord> IEnumerable <SqlDataRecord> .GetEnumerator() { foreach (object o in _list) { var record = new SqlDataRecord(_metadata); if (o != null) { for (int i = 0; i < _objectReader.FieldCount; i++) { var accessor = _objectReader.GetAccessor(i); if (accessor != null) { var value = accessor(o); if (value != null) { record.SetValue(i, value); } } } } yield return(record); } }