From 0a2e062ab395da4a50e794a09f8db814cfac11b8 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Thu, 29 May 2025 13:40:49 +0200 Subject: [PATCH] Hide compiler-generated InlineArray types. --- ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs | 2 ++ ILSpy-tests | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs index 5eba14b77..ceec1103e 100644 --- a/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs +++ b/ICSharpCode.Decompiler/CSharp/CSharpDecompiler.cs @@ -316,6 +316,8 @@ namespace ICSharpCode.Decompiler.CSharp return true; if (settings.FixedBuffers && name.StartsWith("<", StringComparison.Ordinal) && name.Contains("__FixedBuffer")) return true; + if (settings.InlineArrays && name.StartsWith("<>y__InlineArray", StringComparison.Ordinal) && name.EndsWith("`1")) + return true; } else if (type.IsCompilerGenerated(metadata)) { diff --git a/ILSpy-tests b/ILSpy-tests index dd5081d55..6cc4bb294 160000 --- a/ILSpy-tests +++ b/ILSpy-tests @@ -1 +1 @@ -Subproject commit dd5081d55372c57744874042f60e7c23ff69f5f6 +Subproject commit 6cc4bb2942a1c6a134510ad4d916f77604d37b51