[configuration] Part of fix for bug #579837. CommaDelimitedStringCollection...
[configuration] Part of fix for bug #579837. CommaDelimitedStringCollection must properly note that it was modified. When one manipulates the collection as an instance of StringCollection, the 'modified' field will not be set (Add, Remove etc. from the underlying StringCollection type will be used). To work around it a check has to be performed in IsModified whether the contents of the collection changed. It is done by comparing string hash codes of the original vs current string. CommaDelimitedStringCollectionConverter forces string hash code update on the new collection, so that IsModified works correctly on collections converted from comma-delimited strings.
Showing
想要评论请 注册 或 登录