// the Free Software Foundation, Inc., 51 Franklin Street - Fifth Floor,
// Boston, MA 02110-1301, USA.
+#nullable enable
+
using System;
using System.Collections.Generic;
using System.Linq;
if (cachedImageTask != null)
{
if (force)
- {
this.innerDictionary.Remove(address);
- cachedImageTask = null;
- }
else
return cachedImageTask;
}
.ConfigureAwait(false);
}
- public MemoryImage TryGetFromCache(string address)
+ public MemoryImage? TryGetFromCache(string address)
{
lock (this.lockObject)
{