Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ You can use this class as a type in any entity or value object, as for the follo
public class CardType
: Enumeration
{
public static CardType Amex = new CardType(1, nameof(Amex));
public static CardType Visa = new CardType(2, nameof(Visa));
public static CardType MasterCard = new CardType(3, nameof(MasterCard));
public static CardType Amex => new(1, nameof(Amex));
public static CardType Visa => new(2, nameof(Visa));
public static CardType MasterCard => new(3, nameof(MasterCard));

public CardType(int id, string name)
: base(id, name)
Expand Down