Skip to content

M_CodeJam_DebugCode_ValidIndex_1

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

DebugCode.ValidIndex Method (Int32, String, Int32)

Assertion for index in range

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

Syntax

C#

[ConditionalAttribute("DEBUG")]
public static void ValidIndex(
	int index,
	string argName,
	int length
)

VB

<ConditionalAttribute("DEBUG")>
Public Shared Sub ValidIndex ( 
	index As Integer,
	argName As String,
	length As Integer
)

F#

[<ConditionalAttribute("DEBUG")>]
static member ValidIndex : 
        index : int * 
        argName : string * 
        length : int -> unit 

Parameters

 

index
Type: System.Int32
The index.
argName
Type: System.String
Name of the argument.
length
Type: System.Int32
The length.

See Also

Reference

DebugCode Class
ValidIndex Overload
CodeJam Namespace

Clone this wiki locally