summaryrefslogtreecommitdiff
path: root/Xamarin.Forms.Build.Tasks/NodeILExtensions.cs
diff options
context:
space:
mode:
authorStephane Delcroix <stephane@delcroix.org>2016-06-01 22:48:03 +0200
committerJason Smith <jason.smith@xamarin.com>2016-06-01 13:48:03 -0700
commit071883ea17bd2e9a368f8cb8cab82b639d5385f4 (patch)
tree1a3a7478d7523182a327a757c60c6efa46968561 /Xamarin.Forms.Build.Tasks/NodeILExtensions.cs
parent3aa5d68e2e9a70766aefc746a2566d0766a03b58 (diff)
downloadxamarin-forms-071883ea17bd2e9a368f8cb8cab82b639d5385f4.tar.gz
xamarin-forms-071883ea17bd2e9a368f8cb8cab82b639d5385f4.tar.bz2
xamarin-forms-071883ea17bd2e9a368f8cb8cab82b639d5385f4.zip
Xaml werr (#191)
* [XamlC] get rid of 0219 * [XamlC] get rid of 0168 * [XamC] it's 436 time * [XamlC] bye 108 * [XamlC] remove one though obsolete invocation * [XamlC] no longer depend on any obsolete * align the stars
Diffstat (limited to 'Xamarin.Forms.Build.Tasks/NodeILExtensions.cs')
-rw-r--r--Xamarin.Forms.Build.Tasks/NodeILExtensions.cs3
1 files changed, 2 insertions, 1 deletions
diff --git a/Xamarin.Forms.Build.Tasks/NodeILExtensions.cs b/Xamarin.Forms.Build.Tasks/NodeILExtensions.cs
index 30b01061..97b48a40 100644
--- a/Xamarin.Forms.Build.Tasks/NodeILExtensions.cs
+++ b/Xamarin.Forms.Build.Tasks/NodeILExtensions.cs
@@ -90,10 +90,11 @@ namespace Xamarin.Forms.Build.Tasks
MethodReference nullableCtor = null;
if (targetTypeRef.Resolve().FullName == "System.Nullable`1")
{
+ var nullableTypeRef = targetTypeRef;
targetTypeRef = ((GenericInstanceType)targetTypeRef).GenericArguments[0];
isNullable = true;
nullableCtor = originalTypeRef.GetMethods(md => md.IsConstructor && md.Parameters.Count == 1, module).Single().Item1;
- nullableCtor = nullableCtor.MakeGeneric(targetTypeRef);
+ nullableCtor = nullableCtor.ResolveGenericParameters(nullableTypeRef, module);
}
//Obvious Built-in conversions
if (targetTypeRef.Resolve().BaseType != null && targetTypeRef.Resolve().BaseType.FullName == "System.Enum")