Ron,
You need to use 'Explicit interface member implementations'.
http://msdn.microsoft.com/library/de...pec_13_4_1.asp
Your not really hiding the method of the interface, you are hiding the
implementation of the method. As you have found if you cast your object to
the interface itself, you can use the method.
Hope this helps
Jay
"Ron Liu" <ronliu2k@yahoo.ca> wrote in message
news:bfcctm$dah0a$1@ID-50482.news.uni-berlin.de...[color=blue]
> Hi all,
>
> How to hide methods of interface? All the MSDN said it is not possible. I
> also did lots of tests, and got the same answer.
>
> However, I found there are some classes in .net framework did hide some
> properties of their interface. Look at the StringCollection for example.[/color]
The[color=blue]
> StringCollection implement the IList interface. The IList interface has a
> property named IsFixedSize. But, to my surprise, there is no IsFixedSize[/color]
in[color=blue]
> StringCollection. I was pullzed for sevral days. could anyone give me a
> explaination?
>
> Thanks in advance!!!
>
> Ron
>
>[/color]