[Mono-list] Array Class
Dwivedi , Ajay Kumar
AjayKumar.Dwivedi@dresdner-bank.com
Mon, 11 Mar 2002 07:41:36 -0000
> No, I think this is correct. There's no need to explicitly have
> the methods as IList.<something> unless you wish to change the
> visibility of the final implementation of the methods. Since the
> methods Add(object), Clear() etc are defined public, there's no
> explicit implementation required.
>
Try compiling the following code, and you;ll know what I mean :)
Array a =
Array.CreateInstance(typeof(Object),5,6,7);
a.Add(new Object());
((IList)a).Add(new Object());
a.Add will throw a compile error.
The documentation declares the methods I had listed as "Explicit Interface
Implementations"
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemarraymemberstopic.asp
Happy Hacking,
Ajay