Tag Archives: array

Make subarray extension methods in C#

The Array class’s Copy method can copy a subarray from one array to another, but it requires that you figure out how many items you want to copy. It will also copy parts of a two-dimensional array, but it only … Continue reading

Posted in arrays, extension methods | Tagged , , , , , , , , , | Leave a comment

Use LINQ to find a bounding box for a list of PointF in C#

This example shows how to use LINQ to find a bounding box for a list of PointF. When you click on the program’s PictureBox, it adds points to the list and shows the bounding box. The following method finds the … Continue reading

Posted in graphics, LINQ | Tagged , , , , , , , , , , , | Leave a comment