diff --git a/Maui.DataGrid/ObservableRangeCollection.cs b/Maui.DataGrid/ObservableRangeCollection.cs index c15464a..42c3517 100644 --- a/Maui.DataGrid/ObservableRangeCollection.cs +++ b/Maui.DataGrid/ObservableRangeCollection.cs @@ -153,7 +153,7 @@ public void RemoveRange(IEnumerable collection, NotifyCollectionChangedAction /// Clears the current collection and replaces it with the specified item. /// /// The item to replace the collection with. - public void Replace(T item) => ReplaceRange(new T[] { item }); + public void Replace(T item) => ReplaceRange([item]); /// /// Clears the current collection and replaces it with the specified collection.