© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago
Pjamaica

Reference base in different project/dll

I want to pass "base" to a function in a different dll but I can't seem to find the correct syntax.
I have tried with (Application base) but can't access CreateWindow

namespace NameOfApp
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();
            MainPage = new AppShell();
        }

        protected override Window CreateWindow(IActivationState activationState)
        {
            //this should be handled by the other DLL
             var window = base.CreateWindow(activationState);
            //

           return DifferentDLL.SetCustomSize(base);
        }
}
}
namespace NameOfApp
{
    public partial class App : Application
    {
        public App()
        {
            InitializeComponent();
            MainPage = new AppShell();
        }

        protected override Window CreateWindow(IActivationState activationState)
        {
            //this should be handled by the other DLL
             var window = base.CreateWindow(activationState);
            //

           return DifferentDLL.SetCustomSize(base);
        }
}
}
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,828Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Use dll from project reference
C#CC# / help
4y ago
"Protected" dll reference
C#CC# / help
2y ago
❔ Project reference
C#CC# / help
3y ago
✅ Reference DLL by path in .NET Core?
C#CC# / help
3y ago