The current implementation of Render gets the field names and values with reflection from the runtime instance. After #5 it should be possible to generate code for Render by using the compile-time field references instead.
It doesn't seem to be possible with the current code because the template XElement escapes its scope.
The current implementation of
Render
gets the field names and values with reflection from the runtime instance. After #5 it should be possible to generate code forRender
by using the compile-time field references instead.It doesn't seem to be possible with the current code because the template XElement escapes its scope.
(this is just an optimization).