C# Класс Itenso.Sys.ArgumentCheck

Some helper methods for common checks on arguments.
Показать файл Открыть проект

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

Метод Описание
NonemptyTrimmedString ( string value, string name ) : string

Checks the given value and returns it.

NonemptyTrimmedString ( string value, string exceptionMessage, string name ) : string

Checks the given value and returns it.

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

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

Checks the given value and returns it.
in case the given value is null in case the trimmed given value is empty
public static NonemptyTrimmedString ( string value, string name ) : string
value string the value to check
name string the name for the ArgumentException
Результат string

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

Checks the given value and returns it.
in case the given value is null in case the trimmed given value is empty
public static NonemptyTrimmedString ( string value, string exceptionMessage, string name ) : string
value string the value to check
exceptionMessage string the message in the /// in case the given value is empty
name string the name for the ArgumentException
Результат string