Error_CS0029_Cannot隐式将类型'int'转换为'string' [英] Error_CS0029_Cannot implicitly convert type 'int' to 'string'

查看:580
本文介绍了Error_CS0029_Cannot隐式将类型'int'转换为'string'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能帮帮我pleaseeeee

can you help me pleaseeeee

推荐答案

嗨朋友,

欢迎来到MSDN论坛。

Welcome to MSDN forum.

您能否与错误消息分享更多详细信息。 对于
CS0029
,这是编译器错误表示您的代码有问题。 

Could you share more details with the error message.  For CS0029, this is a compiler error which indicates something wrong with your code. 

此外,在我的测试之后,如果您遇到以下情况:

Also, after my test, if you have situation like below:

int a=3;
string b=a; 

它会生成相同的错误消息。要解决此问题,请更改以下代码:

It will generate same error message you get. To resolve it, please change your code like below:

int a=3;
string b=a.ToString();

另外:您可以通过双击错误消息找到导致此问题的代码或检查错误消息中的行号如下所示:

In addttion: You can find the code which result in this issue by double-click the error message or check the line number in error message like below:

希望以上所有有帮助。如果我的回复有帮助,请给我一个反馈。谢谢!

Hope all above helps. And if my reply is helpful, please give me a feedback. Thank you!

最好的问候

Lance


这篇关于Error_CS0029_Cannot隐式将类型'int'转换为'string'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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