Verify that a parameter is not null.
Namespace:
Bespoke.CommonAssembly: Bespoke.Common (in Bespoke.Common.dll) Version: 4.3.0.0 (4.3.0.0)
Syntax
C# |
---|
public static void ParamIsNotNull( string paramName, Object param ) |
Visual Basic (Declaration) |
---|
Public Shared Sub ParamIsNotNull ( _ paramName As String, _ param As Object _ ) |
Visual C++ |
---|
public: static void ParamIsNotNull( String^ paramName, Object^ param ) |
Parameters
- paramName
- Type: System..::.String
The name of the paramater to verify.
- param
- Type: System..::.Object
The object to test for null.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentNullException | Thrown if param is null. |