Skip to content

Instantly share code, notes, and snippets.

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