Re: Pass part of an array
You could use unsafe code and pass a pointer to the first elements in each section. A better solution would be to have each function take the the array, a start, and length arguments to determine where it should get its arguments from.
Re: Pass part of an array
Quote:
Originally Posted by Pirate
Just to clear something up , I was talking in a managed code view point.
Which is definently a better option. There's no reason to use unsafe code for something like this where you could design it better using a managed solution. I was just throwing that out there :)
Re: Pass part of an array
try the Array.GetValue (params long[] indecies) method.