diff options
author | csharptest <roger@csharptest.net> | 2011-07-14 13:40:09 -0500 |
---|---|---|
committer | rogerk <devnull@localhost> | 2011-07-14 13:40:09 -0500 |
commit | b5ba93bf3c24b6c10468d98df3d1fb7f5cd2b3a0 (patch) | |
tree | cbdf3cbe904fe087366089851a1c71d7fff87c43 /src/ProtocolBuffers/ExtensionRegistryLite.cs | |
parent | 84f7e09f0279cb1cf32c104d4c6ccf79539795ed (diff) | |
download | protobuf-b5ba93bf3c24b6c10468d98df3d1fb7f5cd2b3a0.tar.gz protobuf-b5ba93bf3c24b6c10468d98df3d1fb7f5cd2b3a0.tar.bz2 protobuf-b5ba93bf3c24b6c10468d98df3d1fb7f5cd2b3a0.zip |
Integrated feedback from revision c97eeb8d933f
Diffstat (limited to 'src/ProtocolBuffers/ExtensionRegistryLite.cs')
-rw-r--r-- | src/ProtocolBuffers/ExtensionRegistryLite.cs | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/ProtocolBuffers/ExtensionRegistryLite.cs b/src/ProtocolBuffers/ExtensionRegistryLite.cs index df0a7b25..d1220e9c 100644 --- a/src/ProtocolBuffers/ExtensionRegistryLite.cs +++ b/src/ProtocolBuffers/ExtensionRegistryLite.cs @@ -36,6 +36,8 @@ using System;
using System.Collections.Generic;
+using ExtensionByNameMap = System.Collections.Generic.Dictionary<object, System.Collections.Generic.Dictionary<string, Google.ProtocolBuffers.IGeneratedExtensionLite>>;
+using ExtensionByIdMap = System.Collections.Generic.Dictionary<Google.ProtocolBuffers.ExtensionRegistry.ExtensionIntPair, Google.ProtocolBuffers.IGeneratedExtensionLite>;
namespace Google.ProtocolBuffers
{
@@ -92,14 +94,6 @@ namespace Google.ProtocolBuffers /// </remarks>
public sealed partial class ExtensionRegistry
{
- private class ExtensionByNameMap : Dictionary<object, Dictionary<string, IGeneratedExtensionLite>>
- {
- }
-
- private class ExtensionByIdMap : Dictionary<ExtensionIntPair, IGeneratedExtensionLite>
- {
- }
-
private static readonly ExtensionRegistry empty = new ExtensionRegistry(
new ExtensionByNameMap(),
new ExtensionByIdMap(),
@@ -192,7 +186,7 @@ namespace Google.ProtocolBuffers /// Nested type just used to represent a pair of MessageDescriptor and int, as
/// the key into the "by number" map.
/// </summary>
- private struct ExtensionIntPair : IEquatable<ExtensionIntPair>
+ internal struct ExtensionIntPair : IEquatable<ExtensionIntPair>
{
private readonly object msgType;
private readonly int number;
|