変数 asynchExecutions は変更されますが、参照変数は変更されません。
簡単な質問ですが、このコンストラクターのこの ref パラメーターが、渡された元の値を変更しないのはなぜですか?
public partial class ThreadForm : Form
{
int asynchExecutions1 = 1;
public ThreadForm(out int asynchExecutions)
{
asynchExecutions = this.asynchExecutions1;
InitializeComponent();
}
private void start_Button_Click(object sender, EventArgs e)
{
int.TryParse(asynchExecution_txtbx.Text, out asynchExecutions1);
this.Dispose();
}
}