Skip to content

M_CodeJam_DebugCode_AssertArgument

Andrew Koryavchenko edited this page Jun 17, 2018 · 8 revisions

DebugCode.AssertArgument Method (Boolean, String, String)

Assertion for the argument value

Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 2.1.0.0

Syntax

C#

[ConditionalAttribute("DEBUG")]
public static void AssertArgument(
	bool condition,
	string argName,
	string message
)

VB

<ConditionalAttribute("DEBUG")>
Public Shared Sub AssertArgument ( 
	condition As Boolean,
	argName As String,
	message As String
)

F#

[<ConditionalAttribute("DEBUG")>]
static member AssertArgument : 
        condition : bool * 
        argName : string * 
        message : string -> unit 

Parameters

 

condition
Type: System.Boolean
The condition to check
argName
Type: System.String
Name of the argument.
message
Type: System.String
The message.

See Also

Reference

DebugCode Class
AssertArgument Overload
CodeJam Namespace

Clone this wiki locally