Skip to content

protected properties (not annotated) cause error #46

@stokara

Description

@stokara

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions