aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/Collections/RepeatedField.cs
diff options
context:
space:
mode:
authorJan Tattermusch <jtattermusch@google.com>2015-07-15 19:35:38 -0700
committerJan Tattermusch <jtattermusch@google.com>2015-07-15 23:29:45 -0700
commitab5fffcc9e3b8716bfe552fa841a818ca9ab6bbb (patch)
tree33c2d896d3a21f13e6989321dbe8dd798d264410 /csharp/src/ProtocolBuffers/Collections/RepeatedField.cs
parent19cf9d1e0044e18067ac4f444e3d91a5d939e84e (diff)
downloadprotobuf-ab5fffcc9e3b8716bfe552fa841a818ca9ab6bbb.tar.gz
protobuf-ab5fffcc9e3b8716bfe552fa841a818ca9ab6bbb.tar.bz2
protobuf-ab5fffcc9e3b8716bfe552fa841a818ca9ab6bbb.zip
C# cleanup - assorted nits
Diffstat (limited to 'csharp/src/ProtocolBuffers/Collections/RepeatedField.cs')
-rw-r--r--csharp/src/ProtocolBuffers/Collections/RepeatedField.cs3
1 files changed, 1 insertions, 2 deletions
diff --git a/csharp/src/ProtocolBuffers/Collections/RepeatedField.cs b/csharp/src/ProtocolBuffers/Collections/RepeatedField.cs
index b6b52cb9..a09c7954 100644
--- a/csharp/src/ProtocolBuffers/Collections/RepeatedField.cs
+++ b/csharp/src/ProtocolBuffers/Collections/RepeatedField.cs
@@ -44,9 +44,9 @@ namespace Google.Protobuf.Collections
public sealed class RepeatedField<T> : IList<T>, IList, IDeepCloneable<RepeatedField<T>>, IEquatable<RepeatedField<T>>, IFreezable
{
private static readonly T[] EmptyArray = new T[0];
+ private const int MinArraySize = 8;
private bool frozen;
- private const int MinArraySize = 8;
private T[] array = EmptyArray;
private int count = 0;
@@ -259,7 +259,6 @@ namespace Google.Protobuf.Collections
public int Count { get { return count; } }
- // TODO(jonskeet): If we implement freezing, make this reflect it.
public bool IsReadOnly { get { return IsFrozen; } }
public void Add(RepeatedField<T> values)