diff options
author | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-07-29 09:32:55 -0700 |
---|---|---|
committer | Jan Tattermusch <jtattermusch@users.noreply.github.com> | 2015-07-29 09:32:55 -0700 |
commit | 74810c6ae3219498dd3e856f9cd251588c92a899 (patch) | |
tree | 0219cb8b83055e03b8a09b9e24921ab16fb5b6d0 /csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs | |
parent | edff88886b03055f8dff0c0dad61d9450b59a23e (diff) | |
parent | d82ebe48e127469059c043ff3c7e69605fca5969 (diff) | |
download | protobuf-74810c6ae3219498dd3e856f9cd251588c92a899.tar.gz protobuf-74810c6ae3219498dd3e856f9cd251588c92a899.tar.bz2 protobuf-74810c6ae3219498dd3e856f9cd251588c92a899.zip |
Merge pull request #638 from jskeet/portable
First attempt at using profile 259 for Google.Protobuf.
Diffstat (limited to 'csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs')
-rw-r--r-- | csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs b/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs index cd4c5534..8571a5eb 100644 --- a/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs +++ b/csharp/src/Google.Protobuf/Reflection/OneofDescriptor.cs @@ -33,6 +33,7 @@ using System.Collections.Generic; using System.Collections.ObjectModel; using System.Linq; +using Google.Protobuf.Compatibility; namespace Google.Protobuf.Reflection { @@ -91,7 +92,7 @@ namespace Google.Protobuf.Reflection { throw new DescriptorValidationException(this, "Property " + clrName + "Case not found in " + containingType.GeneratedType); } - var clearMethod = containingType.GeneratedType.GetMethod("Clear" + clrName, ReflectionUtil.EmptyTypes); + var clearMethod = containingType.GeneratedType.GetMethod("Clear" + clrName); if (clearMethod == null) { throw new DescriptorValidationException(this, "Method Clear" + clrName + " not found in " + containingType.GeneratedType); |