Skip to content

Commit e55bc52

Browse files
authored
Update enumeration-classes-over-enum-types.md (#24236)
1 parent df5ed8a commit e55bc52

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/architecture/microservices/microservice-ddd-cqrs-patterns/enumeration-classes-over-enum-types.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ You can use this class as a type in any entity or value object, as for the follo
5858
public class CardType
5959
: Enumeration
6060
{
61-
public static CardType Amex => new(1, nameof(Amex));
62-
public static CardType Visa => new(2, nameof(Visa));
63-
public static CardType MasterCard => new(3, nameof(MasterCard));
61+
public static CardType Amex = new(1, nameof(Amex));
62+
public static CardType Visa = new(2, nameof(Visa));
63+
public static CardType MasterCard = new(3, nameof(MasterCard));
6464

6565
public CardType(int id, string name)
6666
: base(id, name)

0 commit comments

Comments
 (0)