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 1052077
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T17:02:08+00:00 2026-05-16T17:02:08+00:00

I have two DLL files that have the same namespace but they have different

  • 0

I have two DLL files that have the same namespace but they have different methods and types.
How can I reference both DLLs in my project and use their methods and types?

By the way, these two DLLs have some methods and types with the same name but different implementation and some unique methods and types.

  • 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-05-16T17:02:09+00:00Added an answer on May 16, 2026 at 5:02 pm

    There’s nothing special you need to do – just reference them and use the types. Namespaces can span accross several assemblies without problems, because they’re not really opaque types. A namespace is just a way of adding a common prefix to all the types it contains, allowing you to have multiple types of the same name under different namespaces. (The framework doesn’t see them as having the same names, because it sees the “fully qualified” name of everything – which has an alias and a namespace attached to the front of it.)

    In the rare event that you reference 2 assemblies which have the same type names and the same namespaces (such as 2 different versions of the same dll) – you can distinguish which assembly to use for a given type using an alias. The default alias for all references is global, but you can specify your own alias for any assembly when you reference it (using a compiler switch – or just use the properties box in Visual Studio) – and have an extern alias <name> clause at the top of your code file where you use it – you would access the types from different assemblies with <name>::MyNamespace.Type

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

Sidebar

Related Questions

I have a need to reference two different versions of the Sharepoint API dll.
I have two applications in two solutions in VS2008 that share a common dll,
I have a bit of code for a dll that is needed by two
I have two C DLLs that I need to access in the same executable.
I have two projects, the DLL project which has all my logic and data
I have two applications written in Java that communicate with each other using XML
Greetings, I have an application that allows users to import libraries (.NET DLLs) they've
I have a commercial product that's a DLL (native 32-bit code), and now it's
I have a c# .net winforms solution and I want to create two different
I have two shared libraries in Linux that when built are identical in all

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.