C# Class Ext.Net.Utilities.Verify

Afficher le fichier Open project: extnet/Utilities

Méthodes publiques

Méthode 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 méthode

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.
Résultat void

IsString() public static méthode

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.
Résultat void