C
Chevron Boyde
Hi There
I have some codes that represent Sale Types i.e. A = On Account, C = Cash, D
= Debtor, V = Voucher
I want to create an enum or struct to work with the logical names like
"Cash" as opposed to "C"
I see the enums cannot work with string values like
public enum SaleType
{
OnAccount = "A",
Cash = "C"
}
Is there another way to do this, maybe with structs? Yet structs seem to
need Constructors to set the public properties/public variables.
Any tips appreciated,
Chev
I have some codes that represent Sale Types i.e. A = On Account, C = Cash, D
= Debtor, V = Voucher
I want to create an enum or struct to work with the logical names like
"Cash" as opposed to "C"
I see the enums cannot work with string values like
public enum SaleType
{
OnAccount = "A",
Cash = "C"
}
Is there another way to do this, maybe with structs? Yet structs seem to
need Constructors to set the public properties/public variables.
Any tips appreciated,
Chev