We will need the ValueStringBuilder overloads to optimize utility methods and avoid heap allocations in the main business logic. This requires updating the CodeGenerationSettings.xml file to include them and editing the T4 templates to correctly generate the overloads.
Note that ValueStringBuilder is a ref struct, so when passed into methods as a parameter, it must be passed as a ref argument. It is also declared internal, so all methods that are generated with it must also be internal.
We will need the
ValueStringBuilder
overloads to optimize utility methods and avoid heap allocations in the main business logic. This requires updating theCodeGenerationSettings.xml
file to include them and editing the T4 templates to correctly generate the overloads.Note that
ValueStringBuilder
is a ref struct, so when passed into methods as a parameter, it must be passed as aref
argument. It is also declared internal, so all methods that are generated with it must also be internal.Example
For the above method, an overload can be generated as:
It would be best to wait until #40 is done before working on this task.