Commit ef4af57b authored by csharptest's avatar csharptest Committed by rogerk

Missing braces :)

parent 3c6e9328
...@@ -78,12 +78,16 @@ namespace Google.ProtocolBuffers ...@@ -78,12 +78,16 @@ namespace Google.ProtocolBuffers
builder.MergeFrom(_message, registry ?? ExtensionRegistry.Empty); builder.MergeFrom(_message, registry ?? ExtensionRegistry.Empty);
if (builder is IDeserializationCallback) if (builder is IDeserializationCallback)
((IDeserializationCallback)builder).OnDeserialization(context); {
((IDeserializationCallback) builder).OnDeserialization(context);
}
TMessage message = _initialized ? builder.Build() : builder.BuildPartial(); TMessage message = _initialized ? builder.Build() : builder.BuildPartial();
if (message is IDeserializationCallback) if (message is IDeserializationCallback)
((IDeserializationCallback)message).OnDeserialization(context); {
((IDeserializationCallback) message).OnDeserialization(context);
}
return message; return message;
} }
...@@ -122,7 +126,9 @@ namespace Google.ProtocolBuffers ...@@ -122,7 +126,9 @@ namespace Google.ProtocolBuffers
builder.MergeFrom(_message, registry ?? ExtensionRegistry.Empty); builder.MergeFrom(_message, registry ?? ExtensionRegistry.Empty);
if (builder is IDeserializationCallback) if (builder is IDeserializationCallback)
((IDeserializationCallback)builder).OnDeserialization(context); {
((IDeserializationCallback) builder).OnDeserialization(context);
}
return builder; return builder;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment