Re: [Mono-list] IsSubclassOf and Assembly.LoadFrom problem

2006-01-06 Thread Colin JN Breame
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

[Mono-list] IsSubclassOf and Assembly.LoadFrom problem

2006-01-04 Thread Colin JN Breame
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

Re: [Mono-list] IsSubclassOf and Assembly.LoadFrom problem

2006-01-04 Thread Elliott Draper
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