To raise a PropertyChanged
event for an indexer and a particular index value, do this:
OnPropertyChanged(string.Format(CultureInfo.CurrentCulture, "Item[{0}]", indexValue));
But what if the indexer accepts multiple index values? Rather than Item[{0}]
, what should the format string look like? Is it Item[{0},{1},{3}]
or perhaps Item[{0}][{1}][{3}]
?