Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 16, 2021 10:02
  • 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
Save lgolubyev/78c7689d8007d798da62733eca07cf28 to your computer and use it in GitHub Desktop.
class Person
{
public string Name { get; init => field = value.Trim(); }
public DateTime DateOfBirth { get; set => field = value.Date; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment