I have translation file with a 13000 of lines. Now at starting the app I read it from manifest resource
var resourceStream = Assembly.GetExecutingAssembly().GetManifestResourceStream("filename.csv")
and parse them via CsvParser.
It's slow operation (takes ~2seconds). I am looking for ways to pre-parse it at build time, so I can access it like that:
var lines = SomeCode.ParsedLines;
Any recommendations how can I do that? I could just write a gigantic .cs file like
"ParsedLines= new string[,]{{"title1","title2"},{"word1","word2"}}"
but the problem is that the .csv file is frequently modified. My best guess is to create a code generator that will create this .cs file at each build, but I am wondering if there are any better approaches.