Skip to content

Commit 11069ee

Browse files
authored
fixed #2
1 parent ecc4d86 commit 11069ee

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/CSharpTypePrinter/CSharpTypePrinter.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,11 @@ public static string ToCSharpCode(this Type type,
5656
buildInTypeString = "string";
5757

5858
if (buildInTypeString != null)
59+
{
60+
if (arrayType != null)
61+
buildInTypeString += "[]";
5962
return printType?.Invoke(arrayType ?? type, buildInTypeString) ?? buildInTypeString;
63+
}
6064

6165
var parentCount = 0;
6266
for (var ti = type.GetTypeInfo(); ti.IsNested; ti = ti.DeclaringType.GetTypeInfo())

0 commit comments

Comments
 (0)