C# Class Itenso.Sys.ArgumentCheck

Some helper methods for common checks on arguments.
Mostrar archivo Open project: Shereef/RTF-to-HTML-Converter-Class-Library-DLL

Public Methods

Method Description
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.

Method Details

NonemptyTrimmedString() public static method

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
return string

NonemptyTrimmedString() public static method

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
return string