Created
April 28, 2021 22:32
-
-
Save MelbourneDeveloper/0a1fca5319daa1355c5ed6b323b06218 to your computer and use it in GitHub Desktop.
String Validator Class
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
| public class StringValidator | |
| { | |
| public string InputString { get; } | |
| public StringValidator(string inputString) | |
| { | |
| if (string.IsNullOrEmpty(inputString)) throw new ArgumentNullException(nameof(inputString)); | |
| InputString = inputString; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment