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;
     }
 }