// Regenerating the code from .proto files will remove this overhead because it will
// Regenerating the code from .proto files will remove this overhead because it will
// generate the InternalMergeFrom method we need.
// generate the InternalMergeFrom method we need.
if(ctx.state.codedInputStream==null)
if(ctx.state.CodedInputStream==null)
{
{
// This can only happen when the parsing started without providing a CodedInputStream instance
// This can only happen when the parsing started without providing a CodedInputStream instance
// (e.g. ParseContext was created directly from a ReadOnlySequence).
// (e.g. ParseContext was created directly from a ReadOnlySequence).
@ -192,15 +192,15 @@ namespace Google.Protobuf
thrownewInvalidProtocolBufferException($"Message {message.GetType().Name} doesn't provide the generated method that enables ParseContext-based parsing. You might need to regenerate the generated protobuf code.");
thrownewInvalidProtocolBufferException($"Message {message.GetType().Name} doesn't provide the generated method that enables ParseContext-based parsing. You might need to regenerate the generated protobuf code.");
}
}
ctx.CopyStateTo(ctx.state.codedInputStream);
ctx.CopyStateTo(ctx.state.CodedInputStream);
try
try
{
{
// fallback parse using the CodedInputStream that started current parsing tree
// fallback parse using the CodedInputStream that started current parsing tree