Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SourceGenerator breaks build ? #320

Open
softlion opened this issue Mar 28, 2024 · 1 comment
Open

SourceGenerator breaks build ? #320

softlion opened this issue Mar 28, 2024 · 1 comment

Comments

@softlion
Copy link

I switched from the reactivemarble's propertychanged to the source generator version.
But now i'm getting this build error:

D:\MyApp\ReactiveMarbles.PropertyChanged.SourceGenerator\ReactiveMarbles.Proper
tyChanged.SourceGenerator.Generator\PropertyChanged.SourceGenerator.Extensions.cs(270,28): 

error CS0122: 'ObservableCollection<MyClass>.PropertyChanged' is inaccessible due to its protection level [D:\MyApp\MyApp.csproj::TargetFramework=net8.0-ios]

Any clue ?

@softlion
Copy link
Author

I found what was causing the issue. It's when an object of that class is used for WhenChanged(...)

public class GroupViewModel : ObservableCollection<MyViewModel>

That is because PropertyChanged is protected inside ObservableCollection.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant