diff --git a/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs b/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs index ec08b097..1f0e0921 100644 --- a/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs +++ b/src/ComputeSharp/Graphics/Helpers/WICFormatHelper.cs @@ -116,7 +116,7 @@ internal static class WICFormatHelper /// Thrown when the input filename doesn't have a valid file extension. public static Guid GetForFilename(ReadOnlySpan filename) { - return Path.GetExtension(filename).ToString() switch + return Path.GetExtension(filename) switch { ".bmp" => GUID.GUID_ContainerFormatBmp, ".png" => GUID.GUID_ContainerFormatPng,