Skip to content

M_CodeJam_DebugCode_InRange__1

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

DebugCode.InRange(T) Method (T, String, T, T)

Assertion for the argument in range

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

Syntax

C#

[ConditionalAttribute("DEBUG")]
public static void InRange<T>(
	T value,
	string argName,
	T fromValue,
	T toValue
)

VB

<ConditionalAttribute("DEBUG")>
Public Shared Sub InRange(Of T) ( 
	value As T,
	argName As String,
	fromValue As T,
	toValue As T
)

F#

[<ConditionalAttribute("DEBUG")>]
static member InRange : 
        value : 'T * 
        argName : string * 
        fromValue : 'T * 
        toValue : 'T -> unit 

Parameters

 

value
Type: T
The value.
argName
Type: System.String
Name of the argument.
fromValue
Type: T
From value (inclusive).
toValue
Type: T
To value (inclusive).

Type Parameters

 

T
Type of the value

See Also

Reference

DebugCode Class
InRange Overload
CodeJam Namespace

Clone this wiki locally