Skip to content

M_CodeJam_DebugCode_AssertArgument_1

andrewvk edited this page Mar 30, 2016 · 8 revisions

DebugCode.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#

[ConditionalAttribute("DEBUG")]
[AssertionMethodAttribute]
[StringFormatMethodAttribute("messageFormat")]
public static void AssertArgument(
	bool condition,
	[NotNullAttribute][InvokerParameterNameAttribute] string argName,
	[NotNullAttribute] string messageFormat,
	[CanBeNullAttribute] params Object[] args
)

VB

<ConditionalAttribute("DEBUG")>
<AssertionMethodAttribute>
<StringFormatMethodAttribute("messageFormat")>
Public Shared Sub AssertArgument ( 
	condition As Boolean,
	<NotNullAttribute><InvokerParameterNameAttribute> argName As String,
	<NotNullAttribute> messageFormat As String,
	<CanBeNullAttribute> ParamArray args As Object()
)

F#

[<ConditionalAttribute("DEBUG")>]
[<AssertionMethodAttribute>]
[<StringFormatMethodAttribute("messageFormat")>]
static member AssertArgument : 
        condition : bool * 
        [<NotNullAttribute>][<InvokerParameterNameAttribute>] argName : string * 
        [<NotNullAttribute>] messageFormat : string * 
        [<CanBeNullAttribute>] args : Object[] -> unit 

Parameters

 

condition
Type: System.Boolean
[Missing documentation for "M:CodeJam.DebugCode.AssertArgument(System.Boolean,System.String,System.String,System.Object[])"]
argName
Type: System.String
[Missing documentation for "M:CodeJam.DebugCode.AssertArgument(System.Boolean,System.String,System.String,System.Object[])"]
messageFormat
Type: System.String
[Missing documentation for "M:CodeJam.DebugCode.AssertArgument(System.Boolean,System.String,System.String,System.Object[])"]
args
Type: System.Object[]
[Missing documentation for "M:CodeJam.DebugCode.AssertArgument(System.Boolean,System.String,System.String,System.Object[])"]

See Also

Reference

DebugCode Class
AssertArgument Overload
CodeJam Namespace

Clone this wiki locally