зеркало из https://github.com/DeGsoft/maui-linux.git
[XamlC] Import property typeRefs in BindingCompiler (#2523)
- fixes #2518
This commit is contained in:
Родитель
1ff3bffc23
Коммит
6141cc3e9a
|
@ -387,6 +387,7 @@ namespace Xamarin.Forms.Build.Tasks
|
|||
|
||||
var properties = ParsePath(path, tSourceRef, node as IXmlLineInfo, module);
|
||||
var tPropertyRef = properties != null && properties.Any() ? properties.Last().Item1.PropertyType : tSourceRef;
|
||||
tPropertyRef = module.ImportReference(tPropertyRef);
|
||||
|
||||
var funcRef = module.ImportReference(module.ImportReference(("mscorlib", "System", "Func`2")).MakeGenericInstanceType(new [] { tSourceRef, tPropertyRef }));
|
||||
var actionRef = module.ImportReference(module.ImportReference(("mscorlib", "System", "Action`2")).MakeGenericInstanceType(new [] { tSourceRef, tPropertyRef }));
|
||||
|
|
Загрузка…
Ссылка в новой задаче