Hi all,
I am having a build error in one of the overloaded functions in my class.
The function takes either a string as a parameter or a type referenced in
another dll as a parameter. My class references the dll where the type of the
parameter is defined. I am able to create to create my class in a form
without any build errors and without any references to the DLL where the
other parameter type is defined. The form only uses the function with the
string parameter and not the other one. But when i try to call the overloaded
function with a string parameter, i get an build error saying a reference to
the DLL containing the other parameter type should be added to the form.
I dont understand why the build error happens only when the function in my
class is called and not when it is created. Also i quite dont get why i
should add a reference in the form to the external parameter type when the
form is never gonna use it.
If the question seems confusing i will be happy to give out more details.
Has anybody faced this kind of error before. I would appreciate it if
somebody can let me know if and how the above problem can be fixed.
Thank You,
-Vish