Skip to content

Instantly share code, notes, and snippets.

@MelbourneDeveloper
Created April 28, 2021 22:32
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
String Validator Class
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