mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-09 21:24:34 +00:00
Misc
This commit is contained in:
@@ -32,6 +32,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
|
|||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
public event EventHandler? OnModified;
|
public event EventHandler? OnModified;
|
||||||
|
|
||||||
|
[PublicAPI]
|
||||||
public int Count {
|
public int Count {
|
||||||
get {
|
get {
|
||||||
using (Lock.ReaderLock()) {
|
using (Lock.ReaderLock()) {
|
||||||
@@ -157,6 +158,7 @@ public sealed class ConcurrentList<T> : IList<T>, IReadOnlyList<T> where T : not
|
|||||||
|
|
||||||
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
||||||
|
|
||||||
|
[PublicAPI]
|
||||||
public void ReplaceWith(IEnumerable<T> collection) {
|
public void ReplaceWith(IEnumerable<T> collection) {
|
||||||
ArgumentNullException.ThrowIfNull(collection);
|
ArgumentNullException.ThrowIfNull(collection);
|
||||||
|
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ using JetBrains.Annotations;
|
|||||||
namespace ArchiSteamFarm.Collections;
|
namespace ArchiSteamFarm.Collections;
|
||||||
|
|
||||||
public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> where TKey : notnull {
|
public sealed class ObservableConcurrentDictionary<TKey, TValue> : IDictionary<TKey, TValue>, IReadOnlyDictionary<TKey, TValue> where TKey : notnull {
|
||||||
|
[PublicAPI]
|
||||||
public event EventHandler? OnModified;
|
public event EventHandler? OnModified;
|
||||||
|
|
||||||
[PublicAPI]
|
[PublicAPI]
|
||||||
|
|||||||
Reference in New Issue
Block a user