Last active
January 7, 2022 16:31
-
-
Save DannyRusnok/a24d61159ecaa40d834d7e4827510ecf to your computer and use it in GitHub Desktop.
Value Objects Article
This file contains hidden or 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
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