Hey forum,
When we make a button on our WPF form and double click on it, we get the following code generated for us:
private void button1_Click(object sender, EventArgs e)
{
}
Now obviously, the button is a _Click method which basically means that whatever code that goes within the body of this method will be executed when the button is 'Clicked'.
With that said, can anyone be so kind to actually explain the signature of the method:
(object sender, EventArgs e)
It would really help me get an understanding of what that actually means. I've made a bunch of UI's and not been bothered to investigate as to what some of the pre-generated code actually mean.
All help is extremely and gratefully appreciated.
Usmaan.