Created
November 7, 2022 03:33
-
-
Save IntegerMan/ffd37a16c769915f643df0ebcfc6aea7 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 void WithdrawMoney(decimal amount) | |
{ | |
if (amount <= 0) | |
{ | |
throw new InvalidOperationException(); | |
} | |
// Actual withdraw code | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment