Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Enumeration Classes - Part 1 - PaymentTypeEnumeration Example
public class PaymentType : Enumeration
{
public static readonly PaymentType DebitCard = new PaymentType(0);
public static readonly PaymentType CreditCard = new PaymentType(1);
private PaymentType(int value, [CallerMemberName] string name = null) : base(value, name)
{
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.