Browse Source

Fix unnecessary dict creation in TSAB constructor.

pull/2765/head
Daniel Grunwald 3 years ago committed by Siegfried Pammer
parent
commit
8b906f5c65
  1. 2
      ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs

2
ICSharpCode.Decompiler/CSharp/Syntax/TypeSystemAstBuilder.cs

@ -1154,7 +1154,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax @@ -1154,7 +1154,7 @@ namespace ICSharpCode.Decompiler.CSharp.Syntax
return true;
}
Dictionary<object, (KnownTypeCode Type, string Member)> specialConstants = new Dictionary<object, (KnownTypeCode Type, string Member)>() {
static readonly Dictionary<object, (KnownTypeCode Type, string Member)> specialConstants = new Dictionary<object, (KnownTypeCode Type, string Member)>() {
// byte:
{ byte.MaxValue, (KnownTypeCode.Byte, "MaxValue") },
// sbyte:

Loading…
Cancel
Save