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
3668a224
Commit
3668a224
authored
May 21, 2015
by
Jan Tattermusch
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #394 from ironhidegames/csharp-aot-ios
Solves AOT compilation issue for Unity - iOS
parents
08ec9dcb
83bcfefb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
4 deletions
+15
-4
ExtensionRegistryLite.cs
csharp/src/ProtocolBuffers/ExtensionRegistryLite.cs
+15
-4
No files found.
csharp/src/ProtocolBuffers/ExtensionRegistryLite.cs
View file @
3668a224
...
...
@@ -96,7 +96,7 @@ namespace Google.ProtocolBuffers
{
private
static
readonly
ExtensionRegistry
empty
=
new
ExtensionRegistry
(
new
ExtensionByNameMap
(),
new
ExtensionByIdMap
(),
new
ExtensionByIdMap
(
new
ExtensionIntPairEqualityComparer
()
),
true
);
private
readonly
ExtensionByNameMap
extensionsByName
;
...
...
@@ -116,7 +116,7 @@ namespace Google.ProtocolBuffers
/// </summary>
public
static
ExtensionRegistry
CreateInstance
()
{
return
new
ExtensionRegistry
(
new
ExtensionByNameMap
(),
new
ExtensionByIdMap
(),
false
);
return
new
ExtensionRegistry
(
new
ExtensionByNameMap
(),
new
ExtensionByIdMap
(
new
ExtensionIntPairEqualityComparer
()
),
false
);
}
public
ExtensionRegistry
AsReadOnly
()
...
...
@@ -216,5 +216,17 @@ namespace Google.ProtocolBuffers
return
msgType
.
Equals
(
other
.
msgType
)
&&
number
==
other
.
number
;
}
}
internal
class
ExtensionIntPairEqualityComparer
:
IEqualityComparer
<
ExtensionIntPair
>
{
public
bool
Equals
(
ExtensionIntPair
x
,
ExtensionIntPair
y
)
{
return
x
.
Equals
(
y
);
}
public
int
GetHashCode
(
ExtensionIntPair
obj
)
{
return
obj
.
GetHashCode
();
}
}
}
}
\ No newline at end of file
}
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