Created
August 16, 2021 10:02
-
-
Save lgolubyev/78c7689d8007d798da62733eca07cf28 to your computer and use it in GitHub Desktop.
This file contains 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
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