Checks for a condition and displays a specified message if the condition is false.

Namespace:  C1.Silverlight
Assembly:  C1.Silverlight (in C1.Silverlight.dll)

Syntax

C#
public static void Assert(
	bool condition,
	string message
)
Visual Basic
Public Shared Sub Assert ( _
	condition As Boolean, _
	message As String _
)

Parameters

condition
Type: System..::..Boolean
The conditional expression to evaluate. If the condition is true, the specified message is not displayed.
message
Type: System..::..String
A message to display.

See Also