Created
December 26, 2020 21:18
-
-
Save arkilis/73254cab9c33dc11272257d1a1ef6f85 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// action with generic type | |
Action<Book> printBookTitle = delegate(Book book) | |
{ | |
Console.WriteLine(book.Title); | |
}; | |
printBookTitle(book); | |
// action without generic type | |
Action printLog = delegate { | |
Console.WriteLine("log"); | |
}; | |
printLog(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment