Skip to content

Commit

Permalink
Minor fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
ElektroKill committed Mar 1, 2024
1 parent 4c0325d commit dcd6c04
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions dnSpy/dnSpy/Documents/Tabs/DefaultDocumentList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit dcd6c04

Please sign in to comment.