c# - PropertyChanged for multiple index values -


to raise propertychanged event indexer , particular index value, this:

onpropertychanged(string.format(cultureinfo.currentculture, "item[{0}]", indexvalue)); 

but if indexer accepts multiple index values? rather item[{0}], should format string like? item[{0},{1},{3}] or perhaps item[{0}][{1}][{3}]?

i've had similar passed in multiple values function subscribed onpropertychanged , used char parse items.

if understand correctly you're trying values correct?

you do:

 onpropertychanged(string.format(cultureinfo.currentculture, "item[{0}];item[{1}];item[{2}]", indexvalue, indexvalue1, indexvalue2)); 

then parse on ; using:

string[] stringarray = yourstring.split(';') 

hope helps


Comments