public static void paymentSimpleType(paymentSimpleType argument) { if (null != argument) { if (argument.Item is bankAccountType) { bankAccountType(argument.Item as bankAccountType); } if (argument.Item is creditCardSimpleType) { creditCardSimpleType(argument.Item as creditCardSimpleType); } } }
public static void paymentSimpleType(paymentSimpleType request) { if (null != request) { if (request.Item is bankAccountType) { bankAccountType(request.Item as bankAccountType); } if (request.Item is creditCardSimpleType) { creditCardSimpleType(request.Item as creditCardSimpleType); } } }