【发布时间】:2016-06-11 23:04:34
【问题描述】:
我想将变量示例编号从一个类解析到另一个类,如下面的代码所示:
public class Gettemp // is the "public" will affect the passing of variable operation?
{
public void temp(string temp)
{
temp = "123"; // things that i wanted to pass from this class
}
}
public partial class Form1 : Form
{
private void STARTbtn_Click(object sender, EventArgs e)
{
MessageBox.Show() // i wan to show the variables here
}
}
【问题讨论】:
-
不清楚你在问什么。
STARTbtn_Click和Gettemp之间没有任何连接
标签: c# class variables parameter-passing