Düzenle

Aracılığıyla paylaş


DebugUtilities.DebugAssert Method

Definition

Overloads

DebugAssert(Boolean)

Asserts a condition.

DebugAssert(Boolean, String)

Asserts a condition.

DebugAssert(Boolean)

Asserts a condition.

public:
 static void DebugAssert(bool condition);
public static void DebugAssert (bool condition);
static member DebugAssert : bool -> unit
Public Shared Sub DebugAssert (condition As Boolean)

Parameters

condition
Boolean

The condition that is expected to be true.

Applies to

DebugAssert(Boolean, String)

Asserts a condition.

public:
 static void DebugAssert(bool condition, System::String ^ message);
public static void DebugAssert (bool condition, string message);
static member DebugAssert : bool * string -> unit
Public Shared Sub DebugAssert (condition As Boolean, message As String)

Parameters

condition
Boolean

The condition that is expected to be true.

message
String

The message to display if the condition evaluates to false.

Applies to