This commit is contained in:
JustArchi
2019-07-10 18:41:13 +02:00
parent 74fd861b87
commit 02a23f7291
2 changed files with 7 additions and 0 deletions

View File

@@ -127,6 +127,8 @@ namespace ArchiSteamFarm.Collections {
}
}
[SuppressMessage("ReSharper", "AnnotationConflictInHierarchy")]
[SuppressMessage("ReSharper", "AssignNullToNotNullAttribute")]
void ICollection<T>.Add([NotNull] T item) => Add(item);
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();

View File

@@ -22,6 +22,7 @@
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Threading;
using JetBrains.Annotations;
@@ -74,6 +75,7 @@ namespace ArchiSteamFarm.Collections {
}
}
[SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")]
public void CopyTo([NotNull] T[] array, int arrayIndex) {
CollectionSemaphore.Wait();
@@ -97,6 +99,7 @@ namespace ArchiSteamFarm.Collections {
}
[NotNull]
[SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")]
public IEnumerator<T> GetEnumerator() => new ConcurrentEnumerator<T>(BackingCollection, CollectionSemaphore);
public void IntersectWith(IEnumerable<T> other) {
@@ -199,9 +202,11 @@ namespace ArchiSteamFarm.Collections {
}
}
[SuppressMessage("ReSharper", "AnnotationConflictInHierarchy")]
void ICollection<T>.Add([NotNull] T item) => Add(item);
[NotNull]
[SuppressMessage("ReSharper", "AnnotationRedundancyInHierarchy")]
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
internal void ReplaceWith([NotNull] IEnumerable<T> other) {