Skip to content

M_CodeJam_Code_AssertArgument_1

andrewvk edited this page Apr 22, 2016 · 10 revisions

Code.AssertArgument Method (Boolean, String, String, Object[])

[This is preliminary documentation and is subject to change.]

Assertion for the argument value

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

Syntax

C#

public static void AssertArgument(
	bool condition,
	string argName,
	string messageFormat,
	params Object[] args
)

VB

Public Shared Sub AssertArgument ( 
	condition As Boolean,
	argName As String,
	messageFormat As String,
	ParamArray args As Object()
)

F#

static member AssertArgument : 
        condition : bool * 
        argName : string * 
        messageFormat : string * 
        args : Object[] -> unit 

Parameters

 

condition
Type: System.Boolean
The condition to check
argName
Type: System.String
Name of the argument.
messageFormat
Type: System.String
The message format.
args
Type: System.Object[]
The arguments.

See Also

Reference

Code Class
AssertArgument Overload
CodeJam Namespace

Clone this wiki locally