471,315 Members | 1,604 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,315 software developers and data experts.

Implicit interface implemenations

Hi all,

Have a question..

I have an internal interface, and an internal class which implements
the interface.

I've been finding it odd that even though the interface is internal,
when I implictely implement the interface, the method must be marked
public. Not a huge deal, since the class which implements the
interface is internal also.. just find it odd.

Any idea why this is? This is with .Net 2.0.

Thanks
andy

Feb 21 '06 #1
1 1055
aj*****@alum.rit.edu wrote:
Have a question..

I have an internal interface, and an internal class which implements
the interface.

I've been finding it odd that even though the interface is internal,
when I implictely implement the interface, the method must be marked
public. Not a huge deal, since the class which implements the
interface is internal also.. just find it odd.

Any idea why this is? This is with .Net 2.0.


All members of an interface are implictly public, so must be
implemented with public methods.

Jon

Feb 21 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

86 posts views Thread by Walter Roberson | last post: by
5 posts views Thread by cody | last post: by
1 post views Thread by Bratislav Jevtic | last post: by
36 posts views Thread by Chad Z. Hower aka Kudzu | last post: by
10 posts views Thread by Pieter Breed | last post: by
18 posts views Thread by Tony | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.