-
-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
Private fields are not ignored when building the ViewModel.
Code example
public class MainViewModel : IBindingContext
{
private readonly IProperty<int> _count = new Property<int>();
public IReadOnlyProperty<int> Count => _count;
}
Current result
Exception: "ArgumentException: An item with the same key has already been added." will be thrown.
Expected result
The _count
field should be ignored if it is private or not marked with the Observable
attribute.
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working