improvements, fixes, etc...

This commit is contained in:
Loretta 2024-06-28 16:44:59 +02:00
parent 6ca4e79f77
commit 33d21d9caf
1 changed files with 5 additions and 3 deletions

View File

@ -93,7 +93,7 @@ namespace AyCode.Blazor.Components.Services
{
private readonly object _syncRoot = new();
protected readonly List<T> InnerList = []; //TODO: Dictionary??? - J.
protected List<T> InnerList = []; //TODO: Dictionary??? - J.
protected readonly ChangeTracking<T> TrackingItems = new();
protected readonly Guid[]? ContextIds;
@ -150,7 +150,9 @@ namespace AyCode.Blazor.Components.Services
{
Clear(clearChangeTracking);
InnerList.AddRange(fromSource);
if (fromSource is List<T> fromSourceCasted) InnerList = fromSourceCasted;
else InnerList.AddRange(fromSource);
//foreach (var item in fromSource)
//{
// InnerList.Add(item);