Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SubmitButton.Click += (s,e) => MessageBox.Show("Button Clicked");
- delegate int AddDelegate(int a, int b);
- static void Main(string[] args){
- AddDelegate ad = (a,b) => a + b;
- int result = ad(1,1); //result = 2
- }
- delegate bool LogDelegate();
- static void Main(string[] args)
- {
- LogDelegate ld = () =>
- {
- UpdateDatabase();
- WriteToEventLog();
- return true;
- };
- bool status = ld();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement