How do I use INotifyPropertyChanged to update an array binding?

前端 未结 4 1429
再見小時候
再見小時候 2021-02-04 08:04

Let\'s say I have a class:

class Foo
{
  public string Bar
  {
    get { ... }
  }

  public string this[int index]
  {
    get { ... }
  }
}

I

4条回答
  •  囚心锁ツ
    2021-02-04 08:13

    Don't know for sure if this'll work, but reflector shows that the get and set methods for an indexed property are called get_Item and set_Item. Perhaps you could try Item and see if that works.

提交回复
热议问题