Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public static class InvoicePaymentMethodExtensions {
- public static bool IsUndefined(this InvoicePaymentMethods paymentMethod) {
- if (paymentMethod == InvoicePaymentMethod.Undefined){
- return true;
- }
- var isDefined = Enum.IsDefined(typeof(InvoicePaymentMethod), paymentMethod);
- return !isDefined;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment