J
Jon Skeet [C# MVP]
Alan Pretre said:I'm with you now.
So we would be trading one constructor type for another; either way there is
a compiler-unenforced rule to provide a specific kind of constructor.
Exactly
![Frown :( :(](/styles/default/custom/smilies/frown.gif)
A really *good* solution would also allow static methods to be
described, and then executed in a type-safe way given a type. For
instance:
Type t = pluginAssembly.GetType (pluginName);
MyPluginInterface(t).CallStaticMethod();
MyPluginInterface instance = MyPluginInterface(t).new (param1, param2);
That's just a random example syntax, but it would be nice to be able to
do something like that. I think. Maybe
![Smile :) :)](/styles/default/custom/smilies/smile.gif)