I was wondering if there was an existing method within the .Net frame work which will copy every nth element of an array to a differant array with an initial offset e.g.
Original Source Array (Bytes)
11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30
Original Target Array
00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00
Source Offset 1
Source Step 3
Target Offset 3
Updated Target Array
00,00,00,12,00,00,00,16,00,00,00,20,00,00,00,24,00,00,00,28
I can quite easily do this with a loop, however it would be handy if a method existed which performed this operation. Primerily the array is a single dimensioned byte array.