ICoordinate coordinate1 = new Coordinate(40.7128, -74.0059); ICoordinate coordinate2 = coordinate1.Clone();
public static void CopyCoordinates(ICoordinate[] source, ICoordinate[] destination) { for (int i = 0; i < source.Length; i++) { destination[i] = source[i].Clone(); } }In this example, we define a static method CopyCoordinates that takes two arrays of ICoordinate objects as arguments. The method iterates over the source array, and for each element, it creates a copy using the Clone method and assigns it to the corresponding element in the destination array. The ICoordinate interface is not part of the standard C# library. However, it is often used in packages and libraries that deal with geographical data, such as the GeographicLib library.