[XamlC] Identify generic instance types correctly when importing ctor (#5309)
authorAkihiko Odaki <akihiko.odaki.4i@stu.hosei.ac.jp>
Fri, 22 Feb 2019 00:56:42 +0000 (09:56 +0900)
committerSamantha Houts <samhouts@users.noreply.github.com>
Fri, 22 Feb 2019 00:56:42 +0000 (16:56 -0800)
commitcd43402f024cd10d4d8a217ef051888e0b758a88
treee34fdf7fb032da2f9e0c4c1e70b7a0b01f335f78
parentc7ea50d2334df4511cf5b90097256fb77fef3a28
[XamlC] Identify generic instance types correctly when importing ctor (#5309)

The old implementation fails to identify generic instance types for typed
binding getter, whose type is:
System.Func`2<TSource, ValueTuple<TProperty, bool>>

This fixes the issue by taking generic arguments into account.
Xamarin.Forms.Build.Tasks/ModuleDefinitionExtensions.cs
Xamarin.Forms.Xaml.UnitTests/XamlC/ModuleDefinitionExtensionsTests.cs [new file with mode: 0644]