From 17a533647bd5e657e5471a331e3a59fec22741b5 Mon Sep 17 00:00:00 2001 From: Siegfried Pammer Date: Tue, 9 Sep 2025 21:41:25 +0200 Subject: [PATCH] Add C# 14 ExtensionMarkerAttribute --- .../TypeSystem/Implementation/KnownAttributes.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/TypeSystem/Implementation/KnownAttributes.cs b/ICSharpCode.Decompiler/TypeSystem/Implementation/KnownAttributes.cs index dab95f0f4..065864daf 100644 --- a/ICSharpCode.Decompiler/TypeSystem/Implementation/KnownAttributes.cs +++ b/ICSharpCode.Decompiler/TypeSystem/Implementation/KnownAttributes.cs @@ -116,11 +116,14 @@ namespace ICSharpCode.Decompiler.TypeSystem // C# 12 attributes: InlineArray, + + // C# 14 attributes: + ExtensionMarker, } public static class KnownAttributes { - internal const int Count = (int)KnownAttribute.InlineArray + 1; + internal const int Count = (int)KnownAttribute.ExtensionMarker + 1; static readonly TopLevelTypeName[] typeNames = new TopLevelTypeName[Count]{ default, @@ -193,6 +196,8 @@ namespace ICSharpCode.Decompiler.TypeSystem new TopLevelTypeName("System.Runtime.CompilerServices", "RequiredMemberAttribute"), // C# 12 attributes: new TopLevelTypeName("System.Runtime.CompilerServices", "InlineArrayAttribute"), + // C# 14 attributes: + new TopLevelTypeName("System.Runtime.CompilerServices", "ExtensionMarkerAttribute"), }; public static ref readonly TopLevelTypeName GetTypeName(this KnownAttribute attr)