* Start working on nullable checks

help me

* Update GlobalConfig.cs

* Finish initial fixup round

* nullability code review
This commit is contained in:
Łukasz Domeradzki
2020-08-22 21:41:01 +02:00
committed by GitHub
parent e5f64ec9dd
commit 9fc1ea65a5
91 changed files with 1996 additions and 2808 deletions

View File

@@ -22,7 +22,6 @@
using System;
using System.Collections;
using System.Collections.Generic;
using JetBrains.Annotations;
namespace ArchiSteamFarm.Collections {
internal sealed class ConcurrentEnumerator<T> : IEnumerator<T> {
@@ -31,9 +30,9 @@ namespace ArchiSteamFarm.Collections {
private readonly IEnumerator<T> Enumerator;
private readonly IDisposable Lock;
object IEnumerator.Current => Current;
object? IEnumerator.Current => Current;
internal ConcurrentEnumerator([NotNull] IReadOnlyCollection<T> collection, [NotNull] IDisposable @lock) {
internal ConcurrentEnumerator(IReadOnlyCollection<T> collection, IDisposable @lock) {
if ((collection == null) || (@lock == null)) {
throw new ArgumentNullException(nameof(collection) + " || " + nameof(@lock));
}