diff --git a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs index e375ad9fab..a6ecfb984b 100644 --- a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs @@ -138,11 +138,6 @@ namespace Google.Protobuf.Reflection internal bool GetIsExtensionsInitialized(IMessage message) { - if (!object.ReferenceEquals(message.Descriptor, this)) - { - throw new InvalidOperationException("message's descriptor reference does not match this"); - } - if (Proto.ExtensionRange.Count == 0) { return true;