C# Class Utilities.Arguments.ArgumentExtensions

Extension class for method parameters
Mostra file Open project: mrvshah/Utilities

Public Methods

Method Description
ThrowIfNull ( this arg, string exceptionMessage = null ) : void

Throw ArgumentNullException if argument is null

Method Details

ThrowIfNull() public static method

Throw ArgumentNullException if argument is null
public static ThrowIfNull ( this arg, string exceptionMessage = null ) : void
arg this Parameter to check for null
exceptionMessage string The exception message
return void