-
I have written a T4 generator that generates a complete C# file from a csv file as input and am thinking of rewriting it as a C# source code generator. The csv file contains a rights matrix that needs to be converted to C# code. I could think of a lot of other scenarios where source code generation from text files could be very helpful. Can such scenarios be implemented with source generators? If so, are there any examples of this? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Yes, source generator samples have one for generating code from CSV files. (Though the description hasn't been updated to indicate Source Generators are no longer in preview.) |
Beta Was this translation helpful? Give feedback.
Yes, source generator samples have one for generating code from CSV files. (Though the description hasn't been updated to indicate Source Generators are no longer in preview.)