Skip to content

Instantly share code, notes, and snippets.

@DannyRusnok
Last active January 7, 2022 16:31
Show Gist options
  • Save DannyRusnok/a24d61159ecaa40d834d7e4827510ecf to your computer and use it in GitHub Desktop.
Save DannyRusnok/a24d61159ecaa40d834d7e4827510ecf to your computer and use it in GitHub Desktop.
Value Objects Article
public record class Address(string Street, string ZipCode, string City);
/*
EQUALS:
public class Adress{
public string Street { get; init; }
public string ZipCode { get; init; }
public string City { get; init; }
public Address(string street, string zipcode, string city){
Street = street;
ZipCode = zipcode;
City = city;
}
}
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment