Created
December 3, 2018 11:49
-
-
Save klimisa/528af7538fb29202cbee75f2fcfafdb8 to your computer and use it in GitHub Desktop.
Function vs Delegates
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
Func<UnverifiedAccountDetails, Task<VerifiedAccountDetails> | |
Task<VerifiedAccountDetails> VerifyAccount(UnverifiedAccountDetails details); | |
Func<UnverifiedAccountDetails, Task<VerifiedAccountDetails>> | |
public delegate Task<VerifiedAccountDetails> VerifyAccount(UnverifiedAccountDetails details); | |
public class Something | |
{ | |
public Something(VerifyAccount verifyAccount){ | |
} | |
} | |
public class Something | |
{ | |
public Something(Func<UnverifiedAccountDetails, Task<VerifiedAccountDetails>> verifyAccount) { | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment