From dcd6c0474f6c1aef90f5cf8d55d18c18e1635365 Mon Sep 17 00:00:00 2001 From: ElektroKill Date: Fri, 1 Mar 2024 20:28:26 +0100 Subject: [PATCH] Minor fixups --- dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs b/dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs index 37ae2890ba..6a6d2d3b75 100644 --- a/dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs +++ b/dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs @@ -82,23 +82,20 @@ static bool FilterFiles(string file) { if (fileName[0] >= 'A' && fileName[0] <= 'Z') { // Exclude native assemblies here // Microsoft.NETCore.App - if (fileName.StartsWith("Microsoft.DiaSymReader.Native.")) { + if (fileName.StartsWith("Microsoft.DiaSymReader.Native.", StringComparison.Ordinal)) return false; - } // Microsoft.WindowsDesktop.App - if (fileName.StartsWith("D3DCompiler_") || fileName.Equals("PenImc_cor3") || fileName.Equals("PresentationNative_cor3")) { + if (fileName.StartsWith("D3DCompiler_", StringComparison.Ordinal) || fileName.Equals("PenImc_cor3") || fileName.Equals("PresentationNative_cor3")) return false; - } return true; } - else if(fileName[0] >= 'a' && fileName[0] <= 'z') { + if (fileName[0] >= 'a' && fileName[0] <= 'z') { // Include managed assemblies here // Microsoft.NETCore.App - if (fileName.Equals("mscorlib") || fileName.Equals("netstandard")) { + if (fileName.Equals("mscorlib") || fileName.Equals("netstandard")) return true; - } return false; }