-
-
Save jesuscampos/b8bcb04119eec3ab32007b170ca1ddeb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| private decimal precio; | |
| public decimal Precio | |
| { | |
| get | |
| { | |
| return precio; | |
| } | |
| set | |
| { | |
| if (value > MAX_VALUE) | |
| { | |
| throw new ArgumentOutOfRangeException("Cantidad máxima excedida"); | |
| } | |
| else if (value < 0) | |
| { | |
| precio = value; | |
| } | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment