From dc0aeaa9030bdac264b44d56d07b6839a1ae94e9 Mon Sep 17 00:00:00 2001 From: detlevschwabe Date: Mon, 27 Jun 2016 22:31:42 -0700 Subject: Adding conditional compiler symbol to support .NET 3.5 (#1713) * Adding condition compiler symbol to support .NET 3.5 --- csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'csharp/src/Google.Protobuf/Reflection') diff --git a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs index f5a835e5..7a1cb9d5 100644 --- a/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/MessageDescriptor.cs @@ -34,6 +34,10 @@ using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +#if DOTNET35 +// Needed for ReadOnlyDictionary, which does not exist in .NET 3.5 +using Google.Protobuf.Collections; +#endif namespace Google.Protobuf.Reflection { -- cgit v1.2.3