aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs
diff options
context:
space:
mode:
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs b/csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs
index 9ed7f8c4..56e3dddc 100644
--- a/csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs
+++ b/csharp/src/Google.Protobuf/Reflection/MapFieldAccessor.cs
@@ -51,6 +51,11 @@ namespace Google.Protobuf.Reflection
list.Clear();
}
+ public override bool HasValue(IMessage message)
+ {
+ throw new InvalidOperationException("HasValue is not implemented for map fields");
+ }
+
public override void SetValue(IMessage message, object value)
{
throw new InvalidOperationException("SetValue is not implemented for map fields");