aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/Collections/MapField.cs
diff options
context:
space:
mode:
authorJon Skeet <jonskeet@google.com>2015-07-17 06:41:46 +0100
committerJon Skeet <jonskeet@google.com>2015-07-17 06:41:46 +0100
commit34878cb14eba4578d1d67d2dc93250729d492774 (patch)
tree6764c5a6f20e7ac4f2c7205638222d7cbbe4a90f /csharp/src/ProtocolBuffers/Collections/MapField.cs
parent3da90e9f54f9648a76a0172e5af94f4a0a00a5e8 (diff)
downloadprotobuf-34878cb14eba4578d1d67d2dc93250729d492774.tar.gz
protobuf-34878cb14eba4578d1d67d2dc93250729d492774.tar.bz2
protobuf-34878cb14eba4578d1d67d2dc93250729d492774.zip
Fixes from PR review.
Diffstat (limited to 'csharp/src/ProtocolBuffers/Collections/MapField.cs')
-rw-r--r--csharp/src/ProtocolBuffers/Collections/MapField.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/ProtocolBuffers/Collections/MapField.cs b/csharp/src/ProtocolBuffers/Collections/MapField.cs
index ead45737..f5e4fd3a 100644
--- a/csharp/src/ProtocolBuffers/Collections/MapField.cs
+++ b/csharp/src/ProtocolBuffers/Collections/MapField.cs
@@ -51,7 +51,7 @@ namespace Google.Protobuf.Collections
public sealed class MapField<TKey, TValue> : IDeepCloneable<MapField<TKey, TValue>>, IFreezable, IDictionary<TKey, TValue>, IEquatable<MapField<TKey, TValue>>, IDictionary
{
// TODO: Don't create the map/list until we have an entry. (Assume many maps will be empty.)
- private bool allowNullValues;
+ private readonly bool allowNullValues;
private bool frozen;
private readonly Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>> map =
new Dictionary<TKey, LinkedListNode<KeyValuePair<TKey, TValue>>>();