2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2025-06-27 05:23:13 +00:00

MAUI Support

This commit is contained in:
2022-08-29 19:08:18 +03:00
parent 3b39c9bd28
commit 4cc0657869
17 changed files with 147 additions and 216 deletions

View File

@ -344,6 +344,7 @@ public static class TemplateGenerator
rt.AppendLine("return rt; }");
}
foreach (var p in template.Properties)
{
if (p.Inherited)
@ -352,7 +353,7 @@ public static class TemplateGenerator
var ptTypeName = GetTypeName(p.ValueType, templates);
rt.AppendLine($"[Public] public {ptTypeName} {p.Name} {{");
rt.AppendLine($"get => ({ptTypeName})properties[{p.Index}];");
rt.AppendLine($"set => _Set({p.Index}, value);");
rt.AppendLine($"set => _SetSync({p.Index}, value);");
rt.AppendLine("}");
}