aboutsummaryrefslogtreecommitdiff
path: root/csharp/src/ProtocolBuffers/FieldSet.cs
diff options
context:
space:
mode:
authorJie Luo <jieluo@google.com>2015-04-30 11:23:09 -0700
committerJie Luo <jieluo@google.com>2015-04-30 11:23:09 -0700
commit24ae5105f3bd44d39303d7e76edb659cca01f97b (patch)
treebeb5264eca24e47d4912f35a8b4b12b8978c07f6 /csharp/src/ProtocolBuffers/FieldSet.cs
parent954bc834133289cd7c844ab4195f574223a0e593 (diff)
parent0884b77975146be5d0557b254fbeab940cda641a (diff)
downloadprotobuf-24ae5105f3bd44d39303d7e76edb659cca01f97b.tar.gz
protobuf-24ae5105f3bd44d39303d7e76edb659cca01f97b.tar.bz2
protobuf-24ae5105f3bd44d39303d7e76edb659cca01f97b.zip
Merge branch 'csharp' of git://github.com/google/protobuf into google-csharp
Diffstat (limited to 'csharp/src/ProtocolBuffers/FieldSet.cs')
-rw-r--r--csharp/src/ProtocolBuffers/FieldSet.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/csharp/src/ProtocolBuffers/FieldSet.cs b/csharp/src/ProtocolBuffers/FieldSet.cs
index f3c08cf5..4177400f 100644
--- a/csharp/src/ProtocolBuffers/FieldSet.cs
+++ b/csharp/src/ProtocolBuffers/FieldSet.cs
@@ -88,7 +88,7 @@ namespace Google.ProtocolBuffers
public static FieldSet CreateInstance()
{
// Use SortedList to keep fields in the canonical order
- return new FieldSet(new SortedList<IFieldDescriptorLite, object>());
+ return new FieldSet(new SortedDictionary<IFieldDescriptorLite, object>());
}
/// <summary>
@@ -111,7 +111,7 @@ namespace Google.ProtocolBuffers
if (hasRepeats)
{
- var tmp = new SortedList<IFieldDescriptorLite, object>();
+ var tmp = new SortedDictionary<IFieldDescriptorLite, object>();
foreach (KeyValuePair<IFieldDescriptorLite, object> entry in fields)
{
IList<object> list = entry.Value as IList<object>;
@@ -151,8 +151,8 @@ namespace Google.ProtocolBuffers
{
get
{
- SortedList<FieldDescriptor, object> copy =
- new SortedList<FieldDescriptor, object>();
+ SortedDictionary<FieldDescriptor, object> copy =
+ new SortedDictionary<FieldDescriptor, object>();
foreach (KeyValuePair<IFieldDescriptorLite, object> fd in fields)
{
copy.Add((FieldDescriptor) fd.Key, fd.Value);