Re: FileNotFoundException'
- From: "Adam Clauss" <cabadam@xxxxxxxx>
- Date: Mon, 20 Jun 2005 15:08:54 -0500
> My program really only knows the interface, but I need to reference the
> concrete class which is instantiated by the library ... odd, actually
> isn't it? What happens if the library is altered (or just confugured
> differently) and returns another type of object, but which still
> implements IDirectoryWatch? Do I need to recompile my program?
No, I don't think so - it isn't a compilation issue (thus why VS did not
catch it). Reflection is all at runtime, so if the library changes to
instantiate a class from some other DLL, that other DLL will have just need
to be in a place it can be located (aka: same directory, windows/system32,
etc).
If you have access to the library code, you might test that by writing up a
quick new library with a class that implements the interface and try to
instatiate it without recompiling your app. Better to be safe than sorry
later :)
--
Adam Clauss
.
- References:
- FileNotFoundException'
- From: Peter Kirk
- Re: FileNotFoundException'
- From: Angel J. Hernández M.
- Re: FileNotFoundException'
- From: Peter Kirk
- Re: FileNotFoundException'
- From: Adam Clauss
- Re: FileNotFoundException'
- From: Peter Kirk
- Re: FileNotFoundException'
- From: Adam Clauss
- Re: FileNotFoundException'
- From: Adam Clauss
- Re: FileNotFoundException'
- From: Peter Kirk
- FileNotFoundException'
- Prev by Date: How can I change the distance of the images in a ListView?
- Next by Date: Re: SizeOf for managed types
- Previous by thread: Re: FileNotFoundException'
- Next by thread: how to switch datagrid font based on each recordset value
- Index(es):
Relevant Pages
|