User-707554951 posted
Hi fazioliamboina
As a2h suggested, you could use Action delegate. Action delegate didn’t return a value.
The usage of it as below:
protected void Page_Load(object sender, EventArgs e)
{
Action<string> t = ShowWindowsMessage;
// Execute the method
t("message");
}
void ShowWindowsMessage(string message)
{
TextBox1.Text = message;
}
Output:

For more details about this, please refer to the links below:
http://www.tutorialsteacher.com/csharp/csharp-action-delegate
Best regards
Cathy