C# Class Ext.Net.Utilities.Verify

Mostra file Open project: extnet/Utilities

Public Methods

Method Description
IsNotNull ( object parameter, string parameterName ) : void

Checks if parameter is not null. Throws ArgumentNullException with name of parameter if null

IsString ( object value, string paramterName ) : void

Checks if the value is a type of String object. Throws ArgumentException if value is not a String type object.

Method Details

IsNotNull() public static method

Checks if parameter is not null. Throws ArgumentNullException with name of parameter if null
public static IsNotNull ( object parameter, string parameterName ) : void
parameter object The parameter value to check.
parameterName string The name of the parameter.
return void

IsString() public static method

Checks if the value is a type of String object. Throws ArgumentException if value is not a String type object.
public static IsString ( object value, string paramterName ) : void
value object The object to check.
paramterName string The name of the parameter.
return void