public static void WriteReturnType(CXType resultType, TextWriter tw)
 {
     switch (resultType.kind)
     {
         case CXTypeKind.CXType_Pointer:
             // const char* gets special treatment
             var typeString = resultType.IsPtrToConstChar() ? @"string" : resultType.ToPlainTypeString();
             tw.Write(typeString);
             break;
         default:
             WriteCommonType(resultType, tw);
             break;
     }
 }
示例#2
0
 public static void ReturnTypeHelper(CXType resultType, TextWriter tw)
 {
     switch (resultType.kind)
     {
         case CXTypeKind.CXType_Pointer:
             tw.Write(resultType.IsPtrToConstChar() ? "string" : "IntPtr"); // const char* gets special treatment
             break;
         default:
             CommonTypeHandling(resultType, tw);
             break;
     }
 }