فهرست منبع

Fix readability.

Sydney Acksman 5 سال پیش
والد
کامیت
6f09cc3a0c
1فایلهای تغییر یافته به همراه2 افزوده شده و 1 حذف شده
  1. 2 1
      csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs

+ 2 - 1
csharp/src/Google.Protobuf/Reflection/ExtensionCollection.cs

@@ -110,7 +110,8 @@ namespace Google.Protobuf.Reflection
                 IList<FieldDescriptor> list;
                 if (!declarationOrder.TryGetValue(descriptor.ExtendeeType, out list))
                 {
-                    declarationOrder.Add(descriptor.ExtendeeType, list = new List<FieldDescriptor>());
+                    list = new List<FieldDescriptor>();
+                    declarationOrder.Add(descriptor.ExtendeeType, list);
                 }
 
                 list.Add(descriptor);