[Mono-list] Instantiating all classes from a namespace

Chris Howie cdhowie at gmail.com
Sun Oct 5 16:17:12 EDT 2008

On Sun, Oct 5, 2008 at 1:58 PM, Charlie Poole <charlie at nunit.com> wrote:
> That doesn't instantiate them, which is much harder in general.
> Say a Type has only one consructor, which takes an object of
> class A. Now you have to instantiate A. But maybe A ony has
> a constructor requiring a B... :-)
> Hopefully, the OP doesn't want to solve the most general case,
> but has some specific limits he has not told us about yet.

In any case like this you create a contract that such classes must
have a specific constructor.  It is madness not to.

Chris Howie

More information about the Mono-list mailing list