C# Class Helios.Util.Guard

Guard class for protecting against stupid input
Afficher le fichier Open project: helios-io/helios

Méthodes publiques

Méthode Description
Against ( this str, char illegalChar, string message = null ) : void
Against ( this str, string illegalSubstr, string message = null ) : void
NotGreaterThan ( this value, int maximumValue ) : void
NotLessThan ( this value, int minimumValue ) : void
NotNegative ( this value ) : void
True ( bool boolean, string errorMessage = "Expression should be true, but was false" ) : void

Method Details

Against() public static méthode

public static Against ( this str, char illegalChar, string message = null ) : void
str this
illegalChar char
message string
Résultat void

Against() public static méthode

public static Against ( this str, string illegalSubstr, string message = null ) : void
str this
illegalSubstr string
message string
Résultat void

NotGreaterThan() public static méthode

public static NotGreaterThan ( this value, int maximumValue ) : void
value this
maximumValue int
Résultat void

NotLessThan() public static méthode

public static NotLessThan ( this value, int minimumValue ) : void
value this
minimumValue int
Résultat void

NotNegative() public static méthode

public static NotNegative ( this value ) : void
value this
Résultat void

True() public static méthode

public static True ( bool boolean, string errorMessage = "Expression should be true, but was false" ) : void
boolean bool
errorMessage string
Résultat void