Toxantron / CGbR

The CGbR project combines the flexibility of reflection with the speed of native code.
MIT License
17 stars 3 forks source link

Single file mode does not work #30

Open PaulDotNet opened 7 years ago

PaulDotNet commented 7 years ago

Generators are not initialized and runner fails every time in single file mode.
Documentation does not match the code as well.

Toxantron commented 7 years ago

I have to admit I focused on project mode first, but I will take a look.

Toxantron commented 7 years ago

@PaulDotNet can you confirm the fix by @dbeuchler by compiling from source or do you want to wait for the next nuget release?

PaulDotNet commented 7 years ago

Thanks for the fix. Unfortunately I may have serialization case that is too complex for any generic serialization/cloning solution. Will have to do that manually for now.

Toxantron commented 7 years ago

If you are at liberty to tell what you need, I could try to help.

Generally all generic solutions and especially code generators only make sense, when you see a repeating pattern and want to avoid writing the same code over and over again. If you see such pattern in your work maybe writing a custom generator is an option for you.