• Jon Skeet's avatar
    Support ToString in RepeatedField and MapField. · 9ed6d4da
    Jon Skeet authored
    This changes how we approach JSON formatting in general - instead of looking  at the field a value came from, we just look at the type of the value. It's possible this *could* be slightly inefficient, but if we start caring about JSON performance deeply, we'll probably want to rewrite all of this anyway. It's definitely simpler this way.
    
    When we support dynamic messages, we'll need to modify JsonFormatter to handle enum values, as they won't come be "real" .NET enums at that point. It shouldn't be hard to do though.
    9ed6d4da
MapFieldTest.cs 22.2 KB