ObservableCollection.Contains() Doesn't Work Correctly

前端 未结 4 1369
时光说笑
时光说笑 2021-01-13 00:55

Consider the following:

class Bind
{
    public string x { get; set; }
    public string y { get; set; }
}
public partial class MainWindow : Window
{
    pub         


        
4条回答
  •  盖世英雄少女心
    2021-01-13 01:38

    You should inform about comparer:

    "Elements are compared to the specified value by using the default equality comparer, Default."

    In EqualityComparer.Default Property you can see an example.

提交回复
热议问题