double[,] matrix = { {1.0, 2.0}, {3.0, 4.0} }; double[,] matrixCopy = (double[,])matrix.Clone();In this example, we create a 2x2 matrix and then create a copy of that matrix using the Clone method. The Clone method returns an object, so we need to cast it to a double[,] to create a copy of the original matrix. The package library for the System Matrix Clone class is the System namespace in the .NET Framework.