[Mono-list] Stubbed-class generator

Jonathan Pryor jonpryor@vt.edu
09 Apr 2002 16:46:56 -0400


Would it be useful, much less legal, to have a "stubbed class
generator"?

Given that Reflection allows determination of nearly everything about a
type, it seems that it should be possible to write a program which would
create a stub class -- methods, fields, properties, etc -- based on the
metadata in the .NET runtime.

The upshot to this is that we could generate stubbed-out classes
automatically, instead of by hand, and then fill in the missing details
later.

Would such a utility be useful?  Would it be legal?  I think it would be
both, but I'm up for a second opinion.  Writing such a utility shouldn't
be too difficult, and I'd be willing begin writing one this weekend.

Thoughts?
 - Jon