Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
NET472 doesn't have Clear.
  • Loading branch information
JimBobSquarePants committed Jan 11, 2022
commit 7d39dfc7c30e899c54ac309df5c9fe8ebe6d9127
4 changes: 2 additions & 2 deletions src/ImageSharp/Formats/ImageFormatManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public class ImageFormatManager
/// <summary>
/// The list of supported <see cref="IImageFormatDetector"/>s.
/// </summary>
private readonly ConcurrentBag<IImageFormatDetector> imageFormatDetectors = new();
private ConcurrentBag<IImageFormatDetector> imageFormatDetectors = new();

/// <summary>
/// Initializes a new instance of the <see cref="ImageFormatManager" /> class.
Expand Down Expand Up @@ -144,7 +144,7 @@ public void SetDecoder(IImageFormat imageFormat, IImageDecoder decoder)
/// <summary>
/// Removes all the registered image format detectors.
/// </summary>
public void ClearImageFormatDetectors() => this.imageFormatDetectors.Clear();
public void ClearImageFormatDetectors() => this.imageFormatDetectors = new();

/// <summary>
/// Adds a new detector for detecting mime types.
Expand Down