Skip to content

Commit 8241a9c

Browse files
authored
Merge pull request #5264 from tamasvajk/feature/more-known-enums
C#: Add more well-known enum underlying types
2 parents e3b3825 + 3e651f1 commit 8241a9c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

csharp/extractor/Semmle.Extraction.CIL/Entities/CustomAttributeDecoder.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,8 @@ public PrimitiveTypeCode GetUnderlyingEnumType(Type type)
5656
private static readonly Dictionary<string, PrimitiveTypeCode> wellKnownEnums = new Dictionary<string, PrimitiveTypeCode>
5757
{
5858
{ "System.AttributeTargets", PrimitiveTypeCode.Int32 },
59-
{ "System.ComponentModel.EditorBrowsableState", PrimitiveTypeCode.Int32 }
59+
{ "System.ComponentModel.EditorBrowsableState", PrimitiveTypeCode.Int32 },
60+
{ "System.Diagnostics.DebuggerBrowsableState", PrimitiveTypeCode.Int32 }
6061
};
6162
}
6263
}

0 commit comments

Comments
 (0)