This is an optimization, and it may be premature. I'll let you decide if/when it's relevant to implement it.
I think the BindableProperty attribute (and probably all the attributes here) could be marked as Conditional.
Indeed, once the source generators have generated the code, there is no reason to keep the attribute in the published app.
This would allow the linker to get rid of the Squan.Helpers.Maui assembly in the final package, if it's not required anymore.
[AttributeUsage(AttributeTargets.Property, Inherited = false, AllowMultiple = false)]
[System.Diagnostics.Conditional(""BindablePropertyGenerator_DEBUG"")]
public class BindablePropertyAttribute : Attribute
This is an optimization, and it may be premature. I'll let you decide if/when it's relevant to implement it.
I think the
BindablePropertyattribute (and probably all the attributes here) could be marked asConditional.Indeed, once the source generators have generated the code, there is no reason to keep the attribute in the published app.
This would allow the linker to get rid of the Squan.Helpers.Maui assembly in the final package, if it's not required anymore.