Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8117947
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T04:19:43+00:00 2026-06-06T04:19:43+00:00

I am developing an internal class that implements an internal interface. Can anyone explain

  • 0

I am developing an internal class that implements an internal interface.
Can anyone explain why I cannot declare my method as internal, why I am getting the following error: “cannot implement an interface member because it is not public”.

I know that I have to declare the method as public, but it makes absolutely no sense to me.

What is the point of declaring a method public if both the interface and the class are internal?
Is it not misleading?

I have read a related question on this site. It is not an exact duplicate, because my class is internal.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T04:19:45+00:00Added an answer on June 6, 2026 at 4:19 am

    Simply put: because that’s the way the language designers designed it. Even in internal interfaces, the methods are implicitly public. It does make things simple, but it’s a pain in other ways.

    If you want a public class where you want to “hide” the use of an internal interface, you could use explicit interface implementation – although that has other drawbacks.

    Of course, if your class is internal then it doesn’t matter that the methods are public anyway – other assemblies aren’t going to be able to call the methods because they can’t see the type.

    I definitely agree that C# (or .NET in general) hasn’t been designed as carefully as it might be around internal interfaces.

    In terms of exactly why you’re getting an error message – section 13.4.4 of the C# 4 spec (interface mapping) is the reason. Implementations are only found for nonstatic public members and explicit interface member implementations – and if there are any unimplemented members in the interface, an error occurs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm developing an internal web application, that allows me to store remote control credentials
I'm developing an application that communicates with an internal web service using HTTP. Are
I am developing an internal web application that needs a back end. The data
Are there any guidelines / best practices on developing a class library (custom internal
I'm developing an application for an internal customer. One of the requirements is that
I'm currently developing a internal application for a company that does patient transport between
I am developing an app for android that has to access another class, but
Scenario I am developing an internal CakePHP company application that has a despatch screen,
I'm developing an internal web app on our company intranet using PHP. One section
I've been tasked with developing an application for internal use in our company, the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.