Tom <(E-Mail Removed)> wrote:
> I am trying to write a routine to do a generic operation on an array
> dostuff(object []). But I have come across a problem. If I use a value
> type array I cannot cast it to an object[]. Is there some way of doing
> this? I guess you would have to box all the values in the array
> individually seems like this could become expensive
Yes, that would be quite painful, but it's the only way of working if
you really need to pass it as object[]. Could you pass it as Array
instead, perhaps?
--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too