diff options
author | Jon Skeet <jonskeet@google.com> | 2015-04-29 15:27:14 +0100 |
---|---|---|
committer | Jon Skeet <jonskeet@google.com> | 2015-04-29 21:15:16 +0100 |
commit | ce97e686826147e2a071fd2321555f7d40ec5d93 (patch) | |
tree | 873c55c5013021255b279ae45034c5276d798838 /csharp/src/ProtocolBuffers/GeneratedMessage.cs | |
parent | a449f66bdb50f3e898889705945fb1ac6b105469 (diff) | |
download | protobuf-ce97e686826147e2a071fd2321555f7d40ec5d93.tar.gz protobuf-ce97e686826147e2a071fd2321555f7d40ec5d93.tar.bz2 protobuf-ce97e686826147e2a071fd2321555f7d40ec5d93.zip |
Convert both the full and lite runtimes (and json/xml serialization assemblies) to be Portable Class Libraries.
All referring projects are now .NET 4 client rather than .NET 3.5.
This commit also fixes up the ProtoBench app, which I'd neglected in previous commits. (Disentangling the two sets of changes would be time-consuming.)
Diffstat (limited to 'csharp/src/ProtocolBuffers/GeneratedMessage.cs')
-rw-r--r-- | csharp/src/ProtocolBuffers/GeneratedMessage.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/csharp/src/ProtocolBuffers/GeneratedMessage.cs b/csharp/src/ProtocolBuffers/GeneratedMessage.cs index 6f4b6657..c17c15cf 100644 --- a/csharp/src/ProtocolBuffers/GeneratedMessage.cs +++ b/csharp/src/ProtocolBuffers/GeneratedMessage.cs @@ -75,8 +75,8 @@ namespace Google.ProtocolBuffers internal IDictionary<FieldDescriptor, Object> GetMutableFieldMap()
{
- // Use a SortedList so we'll end up serializing fields in order
- var ret = new SortedList<FieldDescriptor, object>();
+ // Use a SortedDictionary so we'll end up serializing fields in order
+ var ret = new SortedDictionary<FieldDescriptor, object>();
MessageDescriptor descriptor = DescriptorForType;
foreach (FieldDescriptor field in descriptor.Fields)
{
|