C# Класс Helios.Util.Guard

Guard class for protecting against stupid input
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Against() публичный статический Метод

public static Against ( this str, char illegalChar, string message = null ) : void
str this
illegalChar char
message string
Результат void

Against() публичный статический Метод

public static Against ( this str, string illegalSubstr, string message = null ) : void
str this
illegalSubstr string
message string
Результат void

NotGreaterThan() публичный статический Метод

public static NotGreaterThan ( this value, int maximumValue ) : void
value this
maximumValue int
Результат void

NotLessThan() публичный статический Метод

public static NotLessThan ( this value, int minimumValue ) : void
value this
minimumValue int
Результат void

NotNegative() публичный статический Метод

public static NotNegative ( this value ) : void
value this
Результат void

True() публичный статический Метод

public static True ( bool boolean, string errorMessage = "Expression should be true, but was false" ) : void
boolean bool
errorMessage string
Результат void