[Mono-list] About Arrays of X

yoros@wanadoo.es yoros@wanadoo.es
Sat, 14 Dec 2002 15:33:36 +0100

Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Dec 15, 2002 at 02:14:57AM +1300, Tum wrote:
> Hi,
> It won't work because int[] is an array of value types whereas
> IComparable[] is an array of reference types.  If you used 'int[]'
> instead of Integer[] in Java you'd get the same problem.
> The solution would be to box the ints by putting them inside an
> IComparable[] array instead of an int[] array.

I thought that in C#, a int type was the same that a Int32 class and,
for this reason, I tried to do it.

I'm trying to change int[] to IComparable[] but I don't like it :D

See you,


Pedro Martinez Juli=E1
\  yoros@terra.es
)|    yoros@wanadoo.es
/        http://yoros.cjb.net
Socio HispaLinux #311
Usuario Linux #275438 - http://counter.li.org
GnuPG public information:  pub  1024D/74F1D3AC
Key fingerprint =3D 8431 7B47 D2B4 5A46 5F8E  534F 588B E285 74F1 D3AC

Content-Type: application/pgp-signature
Content-Disposition: inline

Version: GnuPG v1.2.1 (GNU/Linux)