Apply suggestions from code review

Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
Tamás Vajk
2020-12-08 15:09:56 +01:00
committed by Tamas Vajk
parent d140b0121a
commit cbcae667a8

View File

@@ -69,7 +69,7 @@ namespace Semmle.Extraction.CIL.Entities
{
if (value is System.Collections.Immutable.ImmutableArray<CustomAttributeTypedArgument<Type>> values)
{
return "[" + string.Join(",", values.Select(v => v.Value?.ToString() ?? "null")) + "]";
return "[" + string.Join(",", values.Select(v => GetStringValue(v.Value))) + "]";
}
return value?.ToString() ?? "null";