This commit is contained in:
Archi
2024-02-21 13:20:26 +01:00
parent 482576f16d
commit 6cd3459dd4
2 changed files with 3 additions and 0 deletions

View File

@@ -32,6 +32,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
[PublicAPI]
public event EventHandler? OnModified;
[PublicAPI]
public int Count {
get {
using (Lock.ReaderLock()) {
@@ -157,6 +158,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
[PublicAPI]
public void ReplaceWith(IEnumerable<T> collection) {
ArgumentNullException.ThrowIfNull(collection);

View File

@@ -29,6 +29,7 @@ using JetBrains.Annotations;
namespace ArchiSteamFarm.Collections;
public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> where TKey : notnull {
[PublicAPI]
public event EventHandler? OnModified;
[PublicAPI]