Re: Structures and ArrayList
From: Armin Zingler (az.nospam_at_freenet.de)
Date: 02/16/04
- Next message: Armin Zingler: "Re: Language more than 26 characters"
- Previous message: Armin Zingler: "Re: How to test windows form is closed by user's clicking on the "x""
- In reply to: Sueffel: "Re: Structures and ArrayList"
- Next in thread: Sueffel: "Re: Structures and ArrayList"
- Reply: Sueffel: "Re: Structures and ArrayList"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 16 Feb 2004 10:54:54 +0100
"Sueffel" <someone@somewhere.com> schrieb
> Well, I don't know what the assemblyname will be. This is part
> of a
> plugins system that uses LateBinding because of some drawbacks of
> Interfaces. [...]
I am still not satisfied with the situation. :-)
I still don't know
> > Why not reference the assembly that you want to use?
If you really would use Latebinding only, you can not declare the variable
"As Simenz".
The main question is: Do you know in which library the type "Simenz" is
declared?
- If yes, set a reference to the library in your main app, becaues you want
to use /just/ /that/ type.
- If no, how can you know that the type exists at all?
I guess, the situation is: You want the plugins to use a certain type
("Simenz" in this case), /and/ you want your main app to use the same type.
The only clean solution is to put the type into a 3rd DLL. Your main app and
the plugins will be able to use the type:
MainApp
/ |
/ |
/ |
(Plugins) |
\ |
\ |
\ |
3rd library (incl. Simenz)
(view with a fixed font size)
Both, the main app as well as the plugins will be using the /same/ type now.
This enables you to a) declare the variable As Simenz within the main app
and b) assign an object of that type returned by the plugin to the variable
declared in the main app.
-- Armin
- Next message: Armin Zingler: "Re: Language more than 26 characters"
- Previous message: Armin Zingler: "Re: How to test windows form is closed by user's clicking on the "x""
- In reply to: Sueffel: "Re: Structures and ArrayList"
- Next in thread: Sueffel: "Re: Structures and ArrayList"
- Reply: Sueffel: "Re: Structures and ArrayList"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|