nerdexam
Microsoft

70-511 · Question #238

You are developing a Windows Presentation Foundation (WPF) application. You build a dictionary that implements INotifyPropertyChanged. You want to use an indexer to bind to the UI. The relevant…

The correct answer is D. RaiseEvent PropertyChanged(Me. See the full explanation below for the reasoning.

Question

You are developing a Windows Presentation Foundation (WPF) application. You build a dictionary that implements INotifyPropertyChanged. You want to use an indexer to bind to the UI. The relevant implementation of the dictionary is as follows. (Line numbers are included for reference only.) You need to ensure that the PropertyChanged event is triggered so that the UI is updated if you modify the collection using the indexer. Which code should you insert at line 17?

Exhibit

70-511 question #238 exhibit

Options

  • ARaiseEvent PropertyChanged(Me,
  • BRaiseEvent PropertyChanged(Me,
  • CRaiseEvent PropertyChanged(Me,
  • DRaiseEvent PropertyChanged(Me,

How the community answered

(29 responses)
  • A
    17% (5)
  • B
    3% (1)
  • C
    10% (3)
  • D
    69% (20)

Community Discussion

No community discussion yet for this question.

Full 70-511 Practice