C# Class Serenity.Check

Contains argument validation methods
Exibir arquivo Open project: volkanceylan/Serenity

Public Methods

Method 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 method

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

NotNullOrEmpty() public static method

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

NotNullOrWhiteSpace() public static method

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