Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
protobuf
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
protobuf
Commits
dce2b9d1
Commit
dce2b9d1
authored
Nov 05, 2010
by
csharptest
Committed by
unknown
Nov 05, 2010
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed issue in AsReadOnly()
parent
d9c59e66
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
ExtensionRegistry.cs
src/ProtocolBuffers/ExtensionRegistry.cs
+4
-1
ExtensionRegistryLite.cs
src/ProtocolBuffers/ExtensionRegistryLite.cs
+5
-1
No files found.
src/ProtocolBuffers/ExtensionRegistry.cs
View file @
dce2b9d1
...
...
@@ -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
...
...
src/ProtocolBuffers/ExtensionRegistryLite.cs
View file @
dce2b9d1
...
...
@@ -119,7 +119,11 @@ namespace Google.ProtocolBuffers {
get
{
return
empty
;
}
}
public
virtual
ExtensionRegistryLite
AsReadOnly
()
{
public
ExtensionRegistryLite
AsReadOnly
()
{
return
MakeReadOnly
();
}
protected
virtual
ExtensionRegistryLite
MakeReadOnly
()
{
return
new
ExtensionRegistryLite
(
extensionsByNumber
,
true
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment