[Mono-list] Error while casting a struct to an interface

Jaime Anguiano Olarra jaime@geneura.ugr.es
01 Jul 2002 12:26:41 +0200


--=-oxRxCA1+4bmuTsZ6X3s4
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi again,

I got a compiler error telling that I cannot convert a struct to an
interface through casting. The struct actually implements the interface
and I try to cast it directly (although the 'as' way doesn't work
neither):=20

ISomeInterface isObject =3D (ISomeInterface) isObject;

Can anyone tell me what's going wrong?.

Jaime.

--=20
// http://geneura.ugr.es -- The Geneura Team
// http://www.go-mono.com -- The Mono Project

--=-oxRxCA1+4bmuTsZ6X3s4
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: Esta parte del mensaje esta firmada digitalmente

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQA9H4un0ZuGtECkr6cRAsd3AJ9wYbi7hPno1kiXsqtiaL+cMn79xACfaQ5A
KSRV9h/gi4HwGhrncvBVZaE=
=UK98
-----END PGP SIGNATURE-----

--=-oxRxCA1+4bmuTsZ6X3s4--