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.