Factoring basic functionality into a library?

Sep 8, 2012 at 2:08 PM

This project is really....

One suggestion though, is to factor out the basic C# generating funtionality out into a separate DLL, that can then be loaded into other usage scenarios - like a web based service, batch generation of C# from (multiple) http-feeds etc.

I did so experimentally last night and it wasn't much work. I also added a switch for turning off the (english) pluralization feature :)

A big mystery to me was how the JsonClassHelper.cs was originally added to the resx file - there doesn't seem to be a way to do that with the VS resx editor?

Sep 8, 2012 at 5:42 PM

This could be a nice idea.

Anyway, JsonClassHelper.cs was included by manually editing Resources.resx:

  <data name="JsonClassHelper" type="System.Resources.ResXFileRef, System.Windows.Forms">
    <value>..\jsonclasshelper.cs;System.Byte[], mscorlib, Version=, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>