© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
4 replies
HiveMind

Can't access interface method

I have an interface with a defined method - RegisterLanguageChange, but I can't use it in the class that implements the interface. Although I can use ChangeLanguageVersion. Why?

internal interface ILanguageChanged
{
    protected void RegisterLanguageChange()
    {
        MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;
        mainWindow.LanguageChanged += this.ChangeLanguageVersion;
    }

    protected void ChangeLanguageVersion(string language);
}
internal interface ILanguageChanged
{
    protected void RegisterLanguageChange()
    {
        MainWindow mainWindow = (MainWindow)Application.Current.MainWindow;
        mainWindow.LanguageChanged += this.ChangeLanguageVersion;
    }

    protected void ChangeLanguageVersion(string language);
}
image.png
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

✅ where constraint on interface method
C#CC# / help
2y ago
interface vs extension method vs method in class
C#CC# / help
3y ago
✅ Can't have interface with abstract static method as parameter in blazor component
C#CC# / help
3y ago
❔ Static interface methods
C#CC# / help
3y ago