私はForm
これに似たコードを持つ を持っています:
public partial class Form1 : Form
{
private int m_var1;
private int m_var2;
string sMsg;
bool bReturn;
private bool MyFunction()
{
// POINT A: at this point m_var1 and m_var2 are both 100
sMsg = "Test Message";
bReturn = (DialogResult.Yes == MessageBox.Show(sMsg, "MyApp",MessageBoxButtons.YesNo, MessageBoxIcon.Question));
// POINT B: at this point m_var1 and m_var2 are both 0
}
}
私が経験しているように、なぜPOINT B
持っているm_var1
とm_var2
両方が変わった0
のですか?