You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added `using System;` and `using System.Runtime.CompilerServices;` to support new features and optimizations. Introduced conditional compilation for .NET 9.0+ in `CollectionWrapper.cs` and `IAddMultiple.cs` to use `ReadOnlySpan<T>`. Added new methods and overloads to `CollectionWrapper<T, TCollection>` for adding multiple items and ranges, including `ReadOnlySpan<T>` support. Added XML documentation comments to improve maintainability. Renamed `TryTakeWhileCpre` to `TryTakeWhileCore` in `Extensions.ConcurrentBag.cs` for consistency and added methods for trimming and clearing `ConcurrentBag<T>`. Added helper methods and classes like `KeyValuePair.Create` and `ReadOnlyCollectionAdapter<T>`. Enhanced `ListWrapper<T, TList>` and `TrackedCollectionWrapper<T, TCollection>` with additional constructors, methods, and properties. Marked some methods as `[Obsolete]` to guide developers towards more efficient alternatives. Improved exception handling and null checks for robustness.
foreach(T?_inTryTakeWhile(target, t =>t.Count>maxSize))
39
46
{
40
47
}
41
48
}
42
49
50
+
/// <summary>
51
+
/// Trims the <see cref="ConcurrentBag{T}"/> to the specified <paramref name="maxSize"/> and calls the <paramref name="handler"/> for each trimmed item.
0 commit comments