From 7d39dfc7c30e899c54ac309df5c9fe8ebe6d9127 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Tue, 11 Jan 2022 16:50:40 +1100 Subject: [PATCH] NET472 doesn't have Clear. --- src/ImageSharp/Formats/ImageFormatManager.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/Formats/ImageFormatManager.cs b/src/ImageSharp/Formats/ImageFormatManager.cs index d927b87d13..f3fde403da 100644 --- a/src/ImageSharp/Formats/ImageFormatManager.cs +++ b/src/ImageSharp/Formats/ImageFormatManager.cs @@ -37,7 +37,7 @@ namespace SixLabors.ImageSharp.Formats /// /// The list of supported s. /// - private readonly ConcurrentBag imageFormatDetectors = new(); + private ConcurrentBag imageFormatDetectors = new(); /// /// Initializes a new instance of the class. @@ -144,7 +144,7 @@ namespace SixLabors.ImageSharp.Formats /// /// Removes all the registered image format detectors. /// - public void ClearImageFormatDetectors() => this.imageFormatDetectors.Clear(); + public void ClearImageFormatDetectors() => this.imageFormatDetectors = new(); /// /// Adds a new detector for detecting mime types.