Skip to content

M_CodeJam_Code_AssertArgument

andrewvk edited this page Mar 30, 2016 · 10 revisions

Code.AssertArgument Method (Boolean, String, String)

[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#

[AssertionMethodAttribute]
public static void AssertArgument(
	bool condition,
	[NotNullAttribute][InvokerParameterNameAttribute] string argName,
	[NotNullAttribute] string message
)

VB

<AssertionMethodAttribute>
Public Shared Sub AssertArgument ( 
	condition As Boolean,
	<NotNullAttribute><InvokerParameterNameAttribute> argName As String,
	<NotNullAttribute> message As String
)

F#

[<AssertionMethodAttribute>]
static member AssertArgument : 
        condition : bool * 
        [<NotNullAttribute>][<InvokerParameterNameAttribute>] argName : string * 
        [<NotNullAttribute>] message : string -> unit 

Parameters

 

condition
Type: System.Boolean
[Missing documentation for "M:CodeJam.Code.AssertArgument(System.Boolean,System.String,System.String)"]
argName
Type: System.String
[Missing documentation for "M:CodeJam.Code.AssertArgument(System.Boolean,System.String,System.String)"]
message
Type: System.String
[Missing documentation for "M:CodeJam.Code.AssertArgument(System.Boolean,System.String,System.String)"]

See Also

Reference

Code Class
AssertArgument Overload
CodeJam Namespace

Clone this wiki locally