Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 258e314

Browse files
committed
Fix tiny bug.
1 parent da296db commit 258e314

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

WpfObservableRangeCollection/ObservableRangeCollection.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ public int AddRange(IEnumerable<T> collection)
143143
/// <exception cref="ArgumentOutOfRangeException"><paramref name="index"/> is not in the collection range.</exception>
144144
public int InsertRange(int index, IEnumerable<T> collection)
145145
{
146-
ArgumentNullException.ThrowIfNull(nameof(collection));
146+
ArgumentNullException.ThrowIfNull(collection);
147147

148148
if (index < 0)
149149
{
@@ -232,7 +232,7 @@ public int RemoveAll(int index, int count, Predicate<T> match)
232232
throw new ArgumentException($"{nameof(index)} + {nameof(count)} must be less than or equal to the ObservableCollection.Count.");
233233
}
234234

235-
ArgumentNullException.ThrowIfNull(nameof(match));
235+
ArgumentNullException.ThrowIfNull(match);
236236

237237
if (Count == 0)
238238
{
@@ -300,7 +300,7 @@ public int RemoveAll(int index, int count, Predicate<T> match)
300300
/// <exception cref="ArgumentNullException"><paramref name="collection"/> is null.</exception>
301301
public int RemoveRange(IEnumerable<T> collection)
302302
{
303-
ArgumentNullException.ThrowIfNull(nameof(collection));
303+
ArgumentNullException.ThrowIfNull(collection);
304304

305305
if (Count == 0)
306306
{
@@ -474,7 +474,7 @@ void OnRangeReplaced(int followingItemIndex, ICollection<T> newCluster, ICollect
474474
throw new ArgumentException($"{nameof(index)} + {nameof(count)} must be less than or equal to the ObservableCollection.Count.");
475475
}
476476

477-
ArgumentNullException.ThrowIfNull(nameof(collection));
477+
ArgumentNullException.ThrowIfNull(collection);
478478

479479
if (!collection.Any())
480480
{

0 commit comments

Comments
 (0)