ObjectExtensions..::..RaiseIfNull<(Of <(<'T>)>)> Method (Nullable<(Of <(<'T>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'String>)>)>, Nullable<(Of <(<'Int32>)>)>, Nullable<(Of <(<'String>)>)>)

Raises if null.

Namespace:  FastMoq.Extensions
Assembly:  FastMoq.Core (in FastMoq.Core.dll)

Syntax


public static void RaiseIfNull<T>(
	this Nullable<T> thing,
	Nullable<string> name,
	Nullable<string> path,
	Nullable<int> line,
	Nullable<string> exp
)
<ExtensionAttribute> _
Public Shared Sub RaiseIfNull(Of T) ( _
	thing As Nullable(Of T), _
	name As Nullable(Of String), _
	path As Nullable(Of String), _
	line As Nullable(Of Integer), _
	exp As Nullable(Of String) _
)
[ExtensionAttribute]
public:
generic<typename T>
static void RaiseIfNull(
	Nullable<T> thing, 
	Nullable<String^> name, 
	Nullable<String^> path, 
	Nullable<int^> line, 
	Nullable<String^> exp
)

Type Parameters

T

Parameters

thing
Type: Nullable<(Of <(<'T>)>)>
The thing.
name
Type: Nullable<(Of <(<'String>)>)>
The name.
path
Type: Nullable<(Of <(<'String>)>)>
The path.
line
Type: Nullable<(Of <(<'Int32>)>)>
The line.
exp
Type: Nullable<(Of <(<'String>)>)>
The exp.

Exceptions


ExceptionCondition
InvalidOperationException