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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:10:20+00:00 2026-05-21T14:10:20+00:00

Note: I’m a novice, so there may very well be a totally obvious way

  • 0

Note: I’m a novice, so there may very well be a totally obvious way I’ve not recognized.

I have the following projects:

TradingProject    (my code)   Has reference to TradingLibrary, and to ApiLibrary?
TradingLibrary    (my code)   Has reference to ApiLibrary
ApiLibrary        (3rd party code)

I’m making several projects (like TradingProject) that communicate with a software through use of an existing ApiLibrary. But I want to push generic methods into a library I write: TradingLibrary.

Still, I would like to use some parts of the ApiLibrary directly from TradingProject. However, I then would need to pass an object (of an ApiLibrary class) into a method in TradingLibrary. Where the object should be recognized. However I assume this will be a problem, as TradingLibrary use it’s own reference to ApiLibrary, so it will not be recognized as the same classes?

So.. Question is. Is there some way I can “forward” the ApiLibrary reference from TradingLibrary to MyProject, such that they will use the same reference? Or do I need to duplicate the classes and inherit from ApiLibrary for each class? Like:

NameSpace TradingLibrary
Public Class SomeClass
   Inherits ApiLibrary.SomeClass
End Class 

I guess that would work, if I do it for all classes I need, but is there perhaps some simpler way I’m not aware of?

Cheers!

  • 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-21T14:10:21+00:00Added an answer on May 21, 2026 at 2:10 pm

    If it is the same assembly (dll), then the type is the same and no mismatch will occur.

    If you have multiple versions of the same dll loading into the same AppDomain, then things are already horribly mixed up. At this point, you can use forwarding via configuration; for example, the following forwards and MVC 1.*/2.* references to MVC 3.0

    <runtime>
      <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
        <dependentAssembly>
          <assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35"/>
          <bindingRedirect oldVersion="1.0.0.0-2.0.0.0" newVersion="3.0.0.0" />
        </dependentAssembly>
      </assemblyBinding>
    </runtime>
    

    But I stress: the above is usually not needed, especially if you are shipping your dlls next to the application (rather than using the GAC).

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

Sidebar

Related Questions

(Note: This is not a question about what is the best way with code
Note: I've read this and its not quite what I'm looking for: I have
NOTE: XMLIgnore is NOT the answer! OK, so following on from my question on
(Note: This is for MySQL's SQL, not SQL Server.) I have a database column
Note, this is not a duplicate of .prop() vs .attr() ; that question refers
Note: I am not asking how to use Google Code's SVN repo as a
Note: Not sure if this is the right stack, please tell if I should
NOTE: This is a followup to my question here. I have a program that
NOTE: I have read Routing From the Inside Out AND the Engine Yard blog
Note: I understand this is not strictly about development, but in the earlier threads

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.