|
|
|
@ -334,9 +334,11 @@ namespace CppSharp.Types.Std
@@ -334,9 +334,11 @@ namespace CppSharp.Types.Std
|
|
|
|
|
{ |
|
|
|
|
if (ctx.Kind == TypePrinterContextKind.Managed) |
|
|
|
|
return new CILType(typeof(string)); |
|
|
|
|
ClassTemplateSpecialization basicString = GetBasicString(ctx.Type); |
|
|
|
|
var typePrinter = new CSharpTypePrinter(null); |
|
|
|
|
typePrinter.PushContext(TypePrinterContextKind.Native); |
|
|
|
|
if (ctx.Type.Desugar().IsAddress()) |
|
|
|
|
return new CustomType(typePrinter.IntPtrType); |
|
|
|
|
ClassTemplateSpecialization basicString = GetBasicString(ctx.Type); |
|
|
|
|
return new CustomType(basicString.Visit(typePrinter).Type); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|