Share via


Debug.Assert Method

Definition

Overloads

Assert(Boolean)
Assert(Boolean, String, Object[])

Assert(Boolean)

public:
 static void Assert(bool cond);
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool cond);
static member Assert : bool -> unit
Public Shared Sub Assert (cond As Boolean)

Parameters

cond
Boolean
Attributes

Applies to

Assert(Boolean, String, Object[])

public:
 static void Assert(bool cond, System::String ^ format, ... cli::array <System::Object ^> ^ args);
[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool cond, string format, params object[] args);
static member Assert : bool * string * obj[] -> unit
Public Shared Sub Assert (cond As Boolean, format As String, ParamArray args As Object())

Parameters

cond
Boolean
format
String
args
Object[]
Attributes

Applies to