The error messages in Visual Studio become increasingly incomprehensible.

Source: Internet
Author: User

For example:

String abc= 123. ToString;

The Code Compiled in Vs2003 will get the error message:

"The method is referenced without parentheses ....."

Compile in Vs2005 (8.050727.42/rtm 50727 4200) and get the error message:

"The method group" ToString "cannot be converted to a non-commissioned type" string ". Do you want to call the method ?"

If the right part of the equal sign of the code above is located in a method for parameters, an error message is returned:

Parameter "1": cannot be converted from "method group" to "string"

The tone is more friendly. For example, if you have an extra "you" word, you cannot understand the meaning of the word ....

 

Error message compiled in VS2008:

 

Parameter "1": cannot be converted from "method group" to "string"

It can be seen that some error messages are confusing .....

 

Content reference from: Wu Mei Bo <active target. Net> http://huobazi.aspxboy.com/2006/05/04/int32tostringinvs2005/

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.