aboutsummaryrefslogtreecommitdiffhomepage
path: root/csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs
diff options
context:
space:
mode:
authorGravatar Jon Skeet <jonskeet@google.com>2015-09-04 11:22:34 +0100
committerGravatar Jon Skeet <jonskeet@google.com>2015-09-04 12:43:26 +0100
commite50461d809a66517143eb8167a55463e2ef8dfcd (patch)
tree1a0d6fdb868444e9810c553b69095d2b268871fb /csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs
parent4cb0edd7782659eddb5dd3791a330ff117799be5 (diff)
Pack/Unpack implementation for Any.
We still need the JSON representation, which relies on something like a DescriptorPool to fetch message types from based on the type URL. That will come a bit later. (The DescriptorPool comment in this commit is just a note which will prove useful if we use DescriptorPool itself.)
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs b/csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs
index 759955e6..99ca4bf3 100644
--- a/csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs
+++ b/csharp/src/Google.Protobuf/Reflection/DescriptorPool.cs
@@ -96,6 +96,8 @@ namespace Google.Protobuf.Reflection
return descriptor;
}
+ // dependencies contains direct dependencies and any *public* dependencies
+ // of those dependencies (transitively)... so we don't need to recurse here.
foreach (FileDescriptor dependency in dependencies)
{
dependency.DescriptorPool.descriptorsByName.TryGetValue(fullName, out result);