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
return true; 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:
{ byte.MaxValue, (KnownTypeCode.Byte, "MaxValue") }, { byte.MaxValue, (KnownTypeCode.Byte, "MaxValue") },
// sbyte: // sbyte:

Loading…
Cancel
Save