From 8b906f5c651b239ab807293d837efb4bf37da8cd Mon Sep 17 00:00:00 2001 From: Daniel Grunwald Date: Sat, 16 Jul 2022 21:16:32 +0200 Subject: [PATCH] Fix unnecessary dict creation in TSAB constructor. --- ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs index 8f1cbf533..995164b3f 100644 --- a/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs +++ b/ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs @@ -1154,7 +1154,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax return true; } - Dictionary specialConstants = new Dictionary() { + static readonly Dictionary specialConstants = new Dictionary() { // byte: { byte.MaxValue, (KnownTypeCode.Byte, "MaxValue") }, // sbyte: