C
C# Learner
How can I "invoke" a method containing parameters? I've tried
creating my own delegates and using them to do it, but can't get it
working. Can't find any info on this anywhere.
e.g.:
public class MainForm : Form
{
private delegate void D(char c);
private void Invoker()
{
D d = new D();
this.Invoke(d('t'));
}
private void Invokee(char c)
{
this.Text += c;
}
}
creating my own delegates and using them to do it, but can't get it
working. Can't find any info on this anywhere.
e.g.:
public class MainForm : Form
{
private delegate void D(char c);
private void Invoker()
{
D d = new D();
this.Invoke(d('t'));
}
private void Invokee(char c)
{
this.Text += c;
}
}