问题
Protogen (langver=3) compiles
repeated int32 someInt;
To a int[]
. Is there any way to force it to compile to System.Collections.Generic.List<int>
?
Most other types (string, or custom types) compile to list. I can implement a workaround, but the cleanest solution for me would be if this could unpack my buffer to a List<int>
回答1:
Right now: no, not without editing some C#.
I have on my list adding the ability to choose list/lookup types for a range of reasons including this. I'll try to make sure this gets covered in that change.
来源:https://stackoverflow.com/questions/52770476/protogen-generate-listint-instead-of-int-array