|
@@ -119,9 +119,12 @@ namespace Google.ProtocolBuffers {
|
|
|
get { return empty; }
|
|
|
}
|
|
|
|
|
|
- public override ExtensionRegistryLite AsReadOnly() {
|
|
|
+ public new ExtensionRegistry AsReadOnly() {
|
|
|
return new ExtensionRegistry(extensionsByName, extensionsByNumber, true);
|
|
|
}
|
|
|
+ protected override ExtensionRegistryLite MakeReadOnly() {
|
|
|
+ return AsReadOnly();
|
|
|
+ }
|
|
|
|
|
|
/// <summary>
|
|
|
/// Finds an extension by fully-qualified field name, in the
|