Skip to content

Instantly share code, notes, and snippets.

@lgolubyev
Created August 16, 2021 09:59
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/28790ca76de410ae52c6c414146d52b5 to your computer and use it in GitHub Desktop.
Save lgolubyev/28790ca76de410ae52c6c414146d52b5 to your computer and use it in GitHub Desktop.
public record Employee
{
public required string Name { get; init; }
public decimal Salary { get; init; }
public DateTime Date{ get; init => field = value.Date(); }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment