improvements, fixes, etc...
This commit is contained in:
parent
6ca4e79f77
commit
33d21d9caf
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue