Debug.Assert Method (Boolean)

Causes a break in execution if the specified assertion (condition) evaluates to false.

Namespace: Microsoft.SPOT
Assembly: Microsoft.SPOT.Native (in microsoft.spot.native.dll)

Syntax

[ConditionalAttribute]
public static void Assert (
         boolcondition
)

Parameters

  • condition
    The condition to be evaluated. If the return value is true, program execution stops.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, and 4.1.

See Also

Reference

Debug Class
Debug Members
Microsoft.SPOT Namespace