/// <summary> /// Copies the <see cref="T:CoreVelocity.DataAccess.SortedField"/> array to the collection. /// </summary> /// <param name="array">The array of <see cref="T:CoreVelocity.DataAccess.SortedField"/> instances to copy to the collection.</param> /// <param name="arrayIndex">Index of the <see cref="T:CoreVelocity.DataAccess.SortedField"/> in the array to copy to the collection.</param> public void CopyTo(ICriteriaParameter[] array, int arrayIndex) { Asserter.AssertIsNotNull("array", array); Asserter.AssertRange("arrayIndex", 0, array.Length, arrayIndex); if (arrayIndex < 0 || arrayIndex > array.Length) { throw new ArgumentOutOfRangeException("arrayIndex"); } List <ICriteriaParameter> tempList = new List <ICriteriaParameter>(); tempList.AddRange(_innerList); tempList.CopyTo(array, arrayIndex); }