I am displaying lot of custom data types (implemented as structs internally) on my UI. I was hoping to use Fody.PropertyChanged but it seems it works only with classes and not structs.
A sample code:
namespace FodyQuestion
{
[ImplementPropertyChanged]
public struct FodyStruct
{
public int MyProperty { get; set; }
}
}
And the error I see is:
Error 1 Attribute 'ImplementPropertyChanged' is not valid on this declaration type. It is only valid on 'class' declarations.
Has anyone been able to do this with some workarounds? I am willing to check out the source code of Fody and make changes if needed. Any pointers?