[Mono-list] Interface explicit implementation

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


--=-ZnDF1AIqYyvA2gwexc0l
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hi again hackers,

I've noticed I can explicitly implement an interface method as virtual
and I've read that it's not legal. Is that a bug in the mcs?.

I mean, f.ex:

interface IMailAgent
{
	void Send(object obj);
	...
}

...

public class GroupWare : IPhoneable, IMailAgent, I...
{
	public virtual void IMailAgent.Send(object obj)  // I can
 	{						 // compile this
		...
	}

	...
}

What I've read is that that I can't mark a method as virtual if it's an=20
explicit implementation of an interface method. Actually I can do that
with mcs.

Any ideas?.

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

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

iD8DBQA9H4BB0ZuGtECkr6cRAkh/AJ0cx1J9k90LmYnr/URRLrX9XnQ2yQCeNNKz
P/RhH8k8dX3cSugMHk05lMk=
=OyJH
-----END PGP SIGNATURE-----

--=-ZnDF1AIqYyvA2gwexc0l--