Contract.Assert Method

Definition

Overloads

Assert(Boolean)
Assert(Boolean, String)

Assert(Boolean)

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

Parameters

condition
System.Boolean
Attributes
System.Diagnostics.ConditionalAttribute

Applies to

Assert(Boolean, String)

[System.Diagnostics.Conditional("DEBUG")]
public static void Assert (bool condition, string message);
[<System.Diagnostics.Conditional("DEBUG")>]
static member Assert : bool * string -> unit
Public Shared Sub Assert (condition As Boolean, message As String)

Parameters

condition
System.Boolean
message
System.String
Attributes
System.Diagnostics.ConditionalAttribute

Applies to