C#"typeof(string)"的C ++语法是什么? [英] What is the C++ syntax for C# "typeof(string)"?

查看:135
本文介绍了C#"typeof(string)"的C ++语法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

"typeof(string)"的C ++语法是什么?我在SourceGrid示例#14的以下行之后进行了模式化.

What is the C++ syntax for "typeof(string)"? I''m patterning after the following line from SourceGrid sample #14.

SourceGrid.Cells.Editors.ComboBox cbEditor = new SourceGrid.Cells.Editors.ComboBox(typeof(string));



我正在尝试使用C ++设置SourceGrid文本编辑器.我不知道如何在以下语句中构造构造函数.



I''m trying to setup a SourceGrid text editor in C++. I don''t know how to make the constructor in the following statement.

SourceGrid::Cells::Editors::TextBox^ textEditor = gcnew SourceGrid::Cells::Editors::TextBox(???);


[confused]


[confused]

推荐答案

进入C ++/CLI typeof(Something)进入Something::typeid.
您应将此类问题发布到 Managed/C ++ CLI论坛.它是本机编码论坛.

Into C++/CLI typeof(Something) goes to Something::typeid.
You should post this kind of questions into Managed/ C++ CLI forum.It''s native coding forum.


这篇关于C#"typeof(string)"的C ++语法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆