C# Class PayPal.Util.ArgumentValidator

Helper class that validates arguments.
显示文件 Open project: paypal/PayPal-NET-SDK

Public Methods

Method Description
Validate ( object argument, string argumentName ) : void

Helper method for validating an argument that will be used by this API in any requests.

ValidateAndSetupAPIContext ( APIContext apiContext ) : void

Helper method for validating and setting up an APIContext object in preparation for it being used when sending an HTTP request.

Method Details

Validate() public static method

Helper method for validating an argument that will be used by this API in any requests.
public static Validate ( object argument, string argumentName ) : void
argument object The object to be validated.
argumentName string The name of the argument. This will be placed in the exception message for easy reference.
return void

ValidateAndSetupAPIContext() public static method

Helper method for validating and setting up an APIContext object in preparation for it being used when sending an HTTP request.
public static ValidateAndSetupAPIContext ( APIContext apiContext ) : void
apiContext PayPal.Api.APIContext APIContext used for API calls.
return void