C # zookeeper (1)

Source: Internet
Author: User

String userid;
Int minremainmold, currmold, recordmold;
Public dialogresult showform (string userid, int _ minremainmold, int _ currmold, int _ recordmold)
{
Int minremainmold _;
This. userid = userid;
This. minremainmold = _ minremainmold;
This. currmold = _ currmold;
This. recordmold = _ recordmold;
Console. Write (minremainmold _); // you are prompted that the initial values are not deleted.

Console. Write (minremainmold); // when the cursor is passed, the cursor is 0;

Return this. showdialog ();
}

Note that the external and internal definitions of the method body are different:

In the external definition of the method body, the inspector will give the default value. For example, int type changes will give 0; string type changes will give "" and so on...

The variable definition in the method must be an initial value. Otherwise, the variable cannot pass.

 

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.