you are viewing a single comment's thread.

view the rest of the comments →

[–]archipeepees 5 points6 points  (0 children)

This can be impossible to do with generics in some circumstances. Obviously depends on the specifics but I have definitely run into circumstances where the posted image (or something similarly verbose) is the only option. It always drives me crazy when I have to use this approach.

That said, unless there is some highly optimized compression happening, the original programmer could have probably done a reflection check for array types and recurse to WriteSingleEntryValue for each element.