Solved

C# Classes Copy Constructors and DLLs

Posted on 2006-11-05
1
153 Views
Last Modified: 2010-08-05
Hi,

i have a class <A> which has a copy constructor in it.
I have a DLL that i pass the  class <a> as a parameter to a function.
But i when i try to pass that class in as an object i get the message cannot convert class <A> to class <A>.

Here is the line i think it is breaking on:
           // Run Function
          fRun.Invoke(oClass, new object[] { "Test", "Test", Class <a>, "Test" });

Can anyone help??
0
Comment
Question by:cossy74
1 Comment
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 500 total points
Comment Utility
My guess would be that you are dealing with 2 different versions of the class ... i.e. the dll is linked to a different version than the one you are trying to pass. I would look at the versions of the objects using reflections to see if this is the case ..

Cheers,

Greg
0

Featured Post

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now