Jon Skeet
8/15/2008 7:50:00 AM
On Aug 15, 6:54 am, Pavel Minaev <int...@gmail.com> wrote:
> > Richard Everett <richardnever...@gmail.com> wrote:
> > > int[] ints = { 1, 2, 3, 4 };
>
> > > string[] strings = ints.Cast<string>().ToArray(); //
>
> > Did the above really work before SP1? That would surprise me greatly.
>
> Actually, yes, it did work - it was a consequence of them using
> Convert.ChangeType() (and thus IConvertible). As I understand,
> previously, Cast() first tried a straightforward cast (via as), and
> falled back to Convert if that failed.
Yes, I've just tried it on a pre-SP1 machine - apologies for adding to
the confusion :(
Jon