Bee Eee Blog

Archive for February 12th, 2008

c# Copying a 2 Dimensional Array

by brian on Feb.12, 2008, under Uncategorized

Here’s a snippet to copy a 2D array.

double[,] a = new double[3,3]{{1,2,3},{2,3,4},{3,4,5}};
double[,] b = new double[3,3];
Array.Copy(a,b,a.Length);

Pretty simple isn’t it!

Leave a Comment more...

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Visit our friends!

A few highly recommended friends...