We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
If an item that has a non-unique key, it results in "partial adds".
The following test fails as 3 is added to the set even though it should not have been as it is not indexed.
IndexedSet<int> set = IndexedSetBuilder<int>.Create() .WithUniqueIndex(x => x / 2) .Build(); set.Add(2); Assert.ThrowsException<ArgumentException>(() => set.Add(3)); Assert.IsFalse(set.Contains(3));
The text was updated successfully, but these errors were encountered:
Fixes #41: Add & AddRange cleanup partial adds after an exception
b6a0290
5236ee4
No branches or pull requests
If an item that has a non-unique key, it results in "partial adds".
The following test fails as 3 is added to the set even though it should not have been as it is not indexed.
The text was updated successfully, but these errors were encountered: