Hi Jaime,
        you are absolutely correct. Infact, you can't have any
access modifiers (public/protected etc..) or any of abstract, 
virtual, override, or static modifiers either.

Cheers,
Ajay

> -----Original Message-----
> From: Jaime Anguiano Olarra [mailto:[EMAIL PROTECTED]]
> Sent: Monday, July 01, 2002 3:57 PM
> To: mono-list
> Subject: [Mono-list] Interface explicit implementation
> 
> 
> 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
> 

_______________________________________________
Mono-list maillist  -  [EMAIL PROTECTED]
http://lists.ximian.com/mailman/listinfo/mono-list

Reply via email to