Méthode | Description | |
---|---|---|
NotNull ( object target, string parameterName ) : void |
Verifies, that the method parameter with specified object value and message is not null and throws an exception if the object is null.
|
|
NotNullOrEmpty ( string target, string parameterName ) : void |
Verifies, that the string method parameter with specified object value and message is not null, not empty and does not contain only blanls and throws an exception if the object is null.
|
public static NotNull ( object target, string parameterName ) : void | ||
target | object | The target object, which cannot be null. |
parameterName | string | Name of the parameter. |
Résultat | void |
public static NotNullOrEmpty ( string target, string parameterName ) : void | ||
target | string | The target string, which should be checked against being null or empty. |
parameterName | string | Name of the parameter. |
Résultat | void |