From 6cd3459dd41a8bcc554e778e0eeb341d33e645ee Mon Sep 17 00:00:00 2001 From: Archi Date: Wed, 21 Feb 2024 13:20:26 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/Collections/ConcurrentList.cs | 2 ++ ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs | 1 + 2 files changed, 3 insertions(+) diff --git a/ArchiSteamFarm/Collections/ConcurrentList.cs b/ArchiSteamFarm/Collections/ConcurrentList.cs index 9d5ae73db..bac03c68c 100644 --- a/ArchiSteamFarm/Collections/ConcurrentList.cs +++ b/ArchiSteamFarm/Collections/ConcurrentList.cs @@ -32,6 +32,7 @@ public sealed class ConcurrentList : IList, IReadOnlyList where T : not [PublicAPI] public event EventHandler? OnModified; + [PublicAPI] public int Count { get { using (Lock.ReaderLock()) { @@ -157,6 +158,7 @@ public sealed class ConcurrentList : IList, IReadOnlyList where T : not IEnumerator IEnumerable.GetEnumerator() => GetEnumerator(); + [PublicAPI] public void ReplaceWith(IEnumerable collection) { ArgumentNullException.ThrowIfNull(collection); diff --git a/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs b/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs index 55a4d8e6a..8c99a9ee0 100644 --- a/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs +++ b/ArchiSteamFarm/Collections/ObservableConcurrentDictionary.cs @@ -29,6 +29,7 @@ using JetBrains.Annotations; namespace ArchiSteamFarm.Collections; public sealed class ObservableConcurrentDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull { + [PublicAPI] public event EventHandler? OnModified; [PublicAPI]