I am referencing a set of classes that exist in a 3rd party dll to run a search. These classes are bundled in one namespace in version A of this dll, but have been moved to another namespace in dll version B. The dlls have the same name, and my program needs to be able to run against both versions of this 3rd party program. For example:
A call with namespace prefix in version A for these classes would look like:
foo.bar.SearchClass = new foo.bar.SearchClass{x=1,y=2,z=3};
foo.bar.FoundObject = SearchClass.RunSearch()
And a call with namespace prefix in version B would look like:
foo.bar.search.SearchClass = new foo.bar.search.SearchClass{x=1,y=2,z=3};
foo.bar.search.FoundObject = SearchClassRunSearch();
The .search namespace is new to version B and does not exist in version A. But the classes are exactly the same; they've just been lifted from one namespace and plopped in this new one. How can I implement a check that sees what namespace that these referenced classes currently exist in?