aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
diff options
context:
space:
mode:
authorJon Skeet <skeet@pobox.com>2015-07-23 06:50:23 +0100
committerJon Skeet <skeet@pobox.com>2015-07-23 06:50:23 +0100
commitbea87743e09b62f58e4cddead09e9170ee7d5d9a (patch)
tree67df2426209fb564b4a8504fafd1ceaf8481bfdb /csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
parent7b5c3967991b6534f439cb31b0d247501f4a0ef8 (diff)
parentc1c6b2d0d579d863c2ff3709a0053039801f5430 (diff)
downloadprotobuf-bea87743e09b62f58e4cddead09e9170ee7d5d9a.tar.gz
protobuf-bea87743e09b62f58e4cddead09e9170ee7d5d9a.tar.bz2
protobuf-bea87743e09b62f58e4cddead09e9170ee7d5d9a.zip
Merge pull request #634 from jskeet/reflection2
Reflection part 2 - for discussion
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs')
-rw-r--r--csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
index a79d9de4..cd4c5534 100644
--- a/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
+++ b/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs
@@ -70,7 +70,7 @@ namespace Google.Protobuf.Reflection
internal void CrossLink()
{
List<FieldDescriptor> fieldCollection = new List<FieldDescriptor>();
- foreach (var field in ContainingType.Fields)
+ foreach (var field in ContainingType.Fields.InDeclarationOrder())
{
if (field.ContainingOneof == this)
{