Ads API .NET library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros
Google.Api.Ads.Common.Util.PreconditionUtilities Class Reference

Provides utility methods for checking preconditions. More...

Static Public Member Functions

static void CheckArgumentNotNull (object value, string argument)
 Utility method for null checking arguments. More...
 
static void CheckArgument (bool condition, string message)
 Utility method for null checking arguments. More...
 
static void CheckNotNull (object value, string message)
 Utility method for checking values. More...
 
static void CheckState (bool condition, string message)
 Utility method for checking the state of a class or method. More...
 

Detailed Description

Provides utility methods for checking preconditions.

Member Function Documentation

static void Google.Api.Ads.Common.Util.PreconditionUtilities.CheckArgument ( bool  condition,
string  message 
)
inlinestatic

Utility method for null checking arguments.

Parameters
conditionThe Object to check
messageThe name of the argument being checked
static void Google.Api.Ads.Common.Util.PreconditionUtilities.CheckArgumentNotNull ( object  value,
string  argument 
)
inlinestatic

Utility method for null checking arguments.

Parameters
valueThe Object to check
argumentThe name of the argument being checked
static void Google.Api.Ads.Common.Util.PreconditionUtilities.CheckNotNull ( object  value,
string  message 
)
inlinestatic

Utility method for checking values.

Parameters
valueThe Object to check
messageThe error message if the Object is null
static void Google.Api.Ads.Common.Util.PreconditionUtilities.CheckState ( bool  condition,
string  message 
)
inlinestatic

Utility method for checking the state of a class or method.

Parameters
conditionThe condition to check.
messageThe error message to use if the condition check fails.

The documentation for this class was generated from the following file: