Skip to content
This repository was archived by the owner on Aug 24, 2022. It is now read-only.
This repository was archived by the owner on Aug 24, 2022. It is now read-only.

ObservableCollection<string> not working but List<string> is working #288

@Alphapage

Description

@Alphapage

Hello,
I'd like to use ObservableCollection instead of List to get changed notifications easily, but it doesn't seems to work.
Here is my little test case:
System.Collections.ObjectModel.ObservableCollection obs = new System.Collections.ObjectModel.ObservableCollection() { "str1", "str2" };
obs.Add("str3");
System.Diagnostics.Debug.WriteLine("count obs:" + obs.Count);
System.Collections.Generic.List list = new System.Collections.Generic.List() { "str1", "str2" };
list.Add("str3");
System.Diagnostics.Debug.WriteLine("count list:" + list.Count);

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions