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 
explicit implementation of an interface method. Actually I can do that
with mcs.

Any ideas?.

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

Attachment: signature.asc
Description: Esta parte del mensaje esta firmada digitalmente

Reply via email to