/// <summary> /// Copies the elements of the list to a new array. /// </summary> public static T[] ToArray(SystemGenerics.List <T> list) { (list as Mock)?.CheckDataRace(false); return(list.ToArray()); }