C#C
C#3y ago
Daltz333

✅ MVVM Source Generator not copying attributes

It seems that if you do

[ObservableProperty, JsonIgnore]
private ImageSource _MyBadProperty;


It doesn't generate the [JsonIgnore] attribute on MyBadProperty, thus causing any serialization to fail since ImageSource throws an exception on attempted serialization. Any ideas of a workaround without just not using source generators?
Was this page helpful?