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();
|
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 ChangeTracking<T> TrackingItems = new();
|
||||||
|
|
||||||
protected readonly Guid[]? ContextIds;
|
protected readonly Guid[]? ContextIds;
|
||||||
|
|
@ -149,8 +149,10 @@ namespace AyCode.Blazor.Components.Services
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Clear(clearChangeTracking);
|
Clear(clearChangeTracking);
|
||||||
|
|
||||||
InnerList.AddRange(fromSource);
|
if (fromSource is List<T> fromSourceCasted) InnerList = fromSourceCasted;
|
||||||
|
else InnerList.AddRange(fromSource);
|
||||||
|
|
||||||
//foreach (var item in fromSource)
|
//foreach (var item in fromSource)
|
||||||
//{
|
//{
|
||||||
// InnerList.Add(item);
|
// InnerList.Add(item);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue