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

protected properties (not annotated) cause error #46

Open
stokara opened this issue Jan 16, 2025 · 0 comments
Open

protected properties (not annotated) cause error #46

stokara opened this issue Jan 16, 2025 · 0 comments

Comments

@stokara
Copy link

stokara commented Jan 16, 2025

When adding a protected property that is not reactive to my class which partial and inherits from ReactiveObject but the class is not annotated as [Reactive ]

public partial class Class1 : ReactiveObject {
    [Reactive] public partial int ReactiveInt { get; set; }

     protected int NonReactiveInt { get; }

}

generates an error
'Class1.NonReactiveInt' is inaccessible due to its protection level

Workaround: either annotate NonReactiveInt with [IgnoreReactive] or change to public

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