On Thursday 05 January 2006 01:47, Elliott Draper wrote:
if (t.GetInterface(typeof(a.a).FullName)!=null) {
This seems to work, and you were right - IsSubclassOf does not return true for
interfaces. Thanks.
Maybe someone else can comment on whether or not IsSubclassOf *should*
be
I've come across this problem before but never solved it (even after searching
the internet for several hours!). So I thought I'd ask here
I have two dlls:
a.dll - contains interface a.a
b.dll - contains class b.b that implements a.a
A main program loads b.dll and tests
I'm not entirely sure IsSubclassOf is meant to return true for classes
implementing an interface? Certainly I've found that it hasn't in the
past, and instead I use GetInterface() I think it is, passing in the
name of the interface I'm looking for, and checking to see if that
returns the