/// <summary> /// Copies a range of elements from the list to a compatible one-dimensional array, /// starting at the specified index of the target array. /// </summary> public static void CopyTo(SystemGenerics.List <T> list, int index, T[] array, int arrayIndex, int count) { (list as Mock)?.CheckDataRace(false); list.CopyTo(index, array, arrayIndex, count); }
/// <summary> /// Copies the entire list to a compatible one-dimensional array, /// starting at the beginning of the target array. /// </summary> public static void CopyTo(SystemGenerics.List <T> list, T[] array) { (list as Mock)?.CheckDataRace(false); list.CopyTo(array); }