C# Class Serenity.Check

Contains argument validation methods
Afficher le fichier Open project: volkanceylan/Serenity

Méthodes publiques

Méthode Description
NotNull ( object value, string paramName ) : void

Checks argument is not null

NotNullOrEmpty ( string value, string paramName ) : void

Checks argument is not null or empty

NotNullOrWhiteSpace ( string value, string paramName ) : void

Checks argument is not null or string containing whitespace only

Method Details

NotNull() public static méthode

Checks argument is not null
public static NotNull ( object value, string paramName ) : void
value object
paramName string
Résultat void

NotNullOrEmpty() public static méthode

Checks argument is not null or empty
public static NotNullOrEmpty ( string value, string paramName ) : void
value string
paramName string
Résultat void

NotNullOrWhiteSpace() public static méthode

Checks argument is not null or string containing whitespace only
public static NotNullOrWhiteSpace ( string value, string paramName ) : void
value string
paramName string
Résultat void