Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 16, 2021 10:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lgolubyev/8bfc7e2fdb9d184f9a5f9a2b5303f309 to your computer and use it in GitHub Desktop.
Save lgolubyev/8bfc7e2fdb9d184f9a5f9a2b5303f309 to your computer and use it in GitHub Desktop.
private string _firstName;public string Name
{
get
{
return _tName;
}
set
{
if (value.Trim() == "")
throw new ArgumentException("No blank strings");_Name = value;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment