|
|
@ -102,8 +102,6 @@ public class ImageFormatManager |
|
|
/// <returns><see langword="true"/> if a match is found; otherwise, <see langword="false"/></returns>
|
|
|
/// <returns><see langword="true"/> if a match is found; otherwise, <see langword="false"/></returns>
|
|
|
public bool TryFindFormatByFileExtension(string extension, [NotNullWhen(true)] out IImageFormat? format) |
|
|
public bool TryFindFormatByFileExtension(string extension, [NotNullWhen(true)] out IImageFormat? format) |
|
|
{ |
|
|
{ |
|
|
Guard.NotNullOrWhiteSpace(extension, nameof(extension)); |
|
|
|
|
|
|
|
|
|
|
|
if (extension[0] == '.') |
|
|
if (extension[0] == '.') |
|
|
{ |
|
|
{ |
|
|
extension = extension[1..]; |
|
|
extension = extension[1..]; |
|
|
|