I am working on a strongly typed collection using collectionbase
When I change a property of an item in the collection (such as item.name) I want to validate it against the collection so as to prevent duplicate property values.
Similar to the way when you change the name of a datatable that belongs to a datatablecollection, a DuplicateNameException is trown.
Is there a recommended/standard way to accomplish this?
When I change a property of an item in the collection (such as item.name) I want to validate it against the collection so as to prevent duplicate property values.
Similar to the way when you change the name of a datatable that belongs to a datatablecollection, a DuplicateNameException is trown.
Is there a recommended/standard way to accomplish this?