aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Collections/RepeatedField.cs
Commit message (Collapse)AuthorAgeFilesLines
* Compare floating point values bitwise in C#Jon Skeet2017-12-091-2/+3
| | | | | This is the manual code part of the Google.Protobuf library, and tests. Some tests will fail until codegen is changed and rerun.
* Fixes for .NET 3.5 compatibilityJohn Brock2017-02-231-1/+1
| | | | | * Changing DOTNET35 framework symbols in preprocessor directives to the default built-in value of NET35. * Adding extension method StreamExtension.CopyTo for .NET 3.5 because it didn’t exist until .NET 4, and adding associated unit tests.
* C#: Implement IReadOnlyList<T> in RepeatedField<T>Jon Skeet2017-01-301-0/+3
| | | | | | | | We explicitly don't do this when targeting .NET 3.5, where the interface doesn't exist. No implementation is required, as we're already implementing everything we need for IList<T>.
* Implement RepeatedField.AddRange (#1733)Jon Skeet2016-07-131-45/+68
| | | | | | | | | | | | | | | | | | | * 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.
* Replace StringBuilder with TextWriter in JsonFormatteravgweb2016-03-061-3/+4
|
* Fix handling of repeated wrappersJon Skeet2016-01-151-5/+4
| | | | | Previously we were incorrectly packing wrapper types. This also refactors FieldCodec a bit as well, using more C# 6-ness.
* Support ToString in RepeatedField and MapField.Jon Skeet2015-10-011-0/+16
| | | | | | 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.
* Tidying up - fix a bunch of TODOs and remove outdated ones.Jon Skeet2015-08-081-4/+2
|
* Document everything, and turn on errors if we fail to document anything in ↵Jon Skeet2015-08-041-2/+109
| | | | the future.
* More freezing tidy-up; generated code in next commit.Jon Skeet2015-07-301-2/+1
|
* Minor bits of left-over frozenness.Jon Skeet2015-07-301-1/+0
|
* remove the freeze APIJan Tattermusch2015-07-291-26/+3
|
* First attempt at using profile 259 for Google.Protobuf.Jon Skeet2015-07-271-4/+6
| | | | | | | | This requires .NET 4.5, and there are a few compatibility changes required around reflection. Creating a PR from this to see how our CI systems handle it. Will want to add more documentation, validation and probably tests before merging. This is in aid of issue #590.
* First pass at the big rename from ProtocolBuffers to Google.Protobuf.Jon Skeet2015-07-171-0/+470
We'll see what I've missed when CI fails...