Last active
June 25, 2017 17:34
-
-
Save SteveDunn/c7180f57adb98a946dd70e5de9cef5c8 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
public static void Branch(this bool @bool, Action left, Action right) | |
{ | |
if (@bool) | |
{ | |
left(); | |
} | |
else | |
{ | |
right(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment