aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf.Test/Collections
Commit message (Collapse)AuthorAgeFilesLines
* Implement RepeatedField.AddRange (#1733)Jon Skeet2016-07-131-2/+88
| | | | | | | | | | | | | | | | | | | * Improve exception throwing implementation in collections * Implement RepeatedField.AddRange. This fixes issue #1730. * Optimize AddRange for sequences implementing ICollection (Also fix a few more C# 6-isms.) * Remove the overload for Add(RepeatedField<T>) We now just perform the optimization within AddRange itself. This is a breaking change in terms of "drop in the DLL", but is source compatible, which should be fine.
* Prohibit null values in map fieldsJon Skeet2016-01-111-54/+2
| | | | | On deserialization, missing values for message types are replaced with a "default" message.
* Support ToString in RepeatedField and MapField.Jon Skeet2015-10-012-0/+71
| | | | | | 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.
* Implement ICollection.CopyTo (using Array) for MapField views.Jon Skeet2015-08-101-0/+14
|
* Implement Keys and Values as viewsJon Skeet2015-08-081-0/+71
|
* Change ReadTag and PeekTag to just use 0 as a return value for "end of ↵Jon Skeet2015-08-051-2/+2
| | | | | | | | stream", rather than using an awkward out parameter. This simplifies quite a lot of code. Generated code in next commit.
* Expose Coded*Stream constructors directly.Jon Skeet2015-08-031-20/+20
|
* remove the freeze APIJan Tattermusch2015-07-292-92/+0
|
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-172-0/+1180
We'll see what I've missed when CI fails...