UtilWin32FailIfFalse Method

Evaluates the supplied unmanaged return value and, if it is equal to , throws the corresponding Win32Exception.

This exception uses the last Win32 error code (GetLastWin32Error) as error message.

Definition

Namespace: DevCase.Win32
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static bool FailIfFalse(
	bool returnValue
)

Parameters

returnValue  Boolean
The return value to test.

Return Value

Boolean
The supplied return value.

See Also