mausch / XmlLiteralsTypeProvider

F# type provider implementing compile-time XML literals
Apache License 2.0
5 stars 2 forks source link

Reflectionless render #7

Open mausch opened 10 years ago

mausch commented 10 years ago

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.

(this is just an optimization).