[Mono-list] About Arrays of X

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


--1rguoi8KZGYj2k4L
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,
>=20
> 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.
>=20
> 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

--=20
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

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

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE9+0FAWIvihXTx06wRApdUAJ4qGwL1768SaWGvHpUWabsbaWt/GACfVw+p
oI+BaIYXYeDs+MZvXRZWEoY=
=I3yg
-----END PGP SIGNATURE-----

--1rguoi8KZGYj2k4L--