Skip to content

Commit 06621d4

Browse files
committed
Re-use IntPtrType in CSharpTypePrinter.cs.
1 parent 5dc239a commit 06621d4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Generator/Generators/CSharp/CSharpTypePrinter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -583,7 +583,7 @@ public TypePrinterResult VisitTemplateArgument(TemplateArgument a)
583583
if (a.Type.Type == null)
584584
return a.Integral.ToString(CultureInfo.InvariantCulture);
585585
var type = a.Type.Type.Desugar();
586-
return type.IsPointerToPrimitiveType() ? "global::System.IntPtr" : type.Visit(this);
586+
return type.IsPointerToPrimitiveType() ? IntPtrType : type.Visit(this);
587587
}
588588

589589
public override TypePrinterResult VisitParameterDecl(Parameter parameter)

0 commit comments

Comments
 (0)