This commit is contained in:
2022-08-30 14:15:11 -05:00
parent 1b1bb9c82c
commit 4b176b99a0
3226 changed files with 155063 additions and 60 deletions

View File

@@ -0,0 +1,21 @@
using System;
using System.Windows.Forms;
namespace FuncDelegateDemo1
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void demoButton_Click(object sender, EventArgs e)
{
Func<int, double> Half = x => x * 0.5;
double result = Half(25);
MessageBox.Show("Half of 25 is " + result.ToString());
}
}
}