Skip to content

Commit d61cd24

Browse files
committed
Fixed an incorrect argument check
1 parent 659dbb0 commit d61cd24

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Microsoft.Toolkit.Uwp.UI.Controls/TokenizingTextBox/InterspersedObservableCollection.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ private int ToInnerIndex(int outerIndex)
200200
throw new ArgumentOutOfRangeException(nameof(outerIndex));
201201
}
202202

203-
if (!_interspersedObjects.ContainsKey(outerIndex))
203+
if (_interspersedObjects.ContainsKey(outerIndex))
204204
{
205205
throw new ArgumentException("The outer index can't be inserted as a key to the original collection.");
206206
}

0 commit comments

Comments
 (0)