S
Shalom Shachne
We have been trying to mimic a sort of "plug-in" design with our
app. We are loading assemblies which are in the app's assembly
directory and then iterating all the Types in each Assembly to find
ones which match the plug-in loaders designated type.
I was thinking of perhaps trying to use Assembly Attributes to mark
the plugin Assembly(ies) so that we don't bother iterating the types
from other assemblies which we know wouldn't contain the "plugin".
It seems like there is a Product Info Assembly Attribute, that maybe
could be used for this purpose.
I'm not totally sure that this is a necessary or good idea. It seems
to iterate all the other assembly's types very quickly - so maybe this
is an unecessary optimization.
I would welcome any thoughts or suggestions.
app. We are loading assemblies which are in the app's assembly
directory and then iterating all the Types in each Assembly to find
ones which match the plug-in loaders designated type.
I was thinking of perhaps trying to use Assembly Attributes to mark
the plugin Assembly(ies) so that we don't bother iterating the types
from other assemblies which we know wouldn't contain the "plugin".
It seems like there is a Product Info Assembly Attribute, that maybe
could be used for this purpose.
I'm not totally sure that this is a necessary or good idea. It seems
to iterate all the other assembly's types very quickly - so maybe this
is an unecessary optimization.
I would welcome any thoughts or suggestions.