Skip to content

T_CodeJam_DebugCode

andrewvk edited this page Mar 25, 2016 · 11 revisions

DebugCode Class

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

Debug-time assertions class.

Inheritance Hierarchy

System.Object
  CodeJam.DebugCode
Namespace: CodeJam
Assembly: CodeJam (in CodeJam.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#

public static class DebugCode

VB

Public NotInheritable Class DebugCode

F#

[<AbstractClassAttribute>]
[<SealedAttribute>]
type DebugCode =  class end

The DebugCode type exposes the following members.

Methods

 

Name Description
Public methodStatic member AssertArgument(Boolean, String, String) Assertion for the argument value
Public methodStatic member AssertArgument(Boolean, String, String, Object[]) Assertion for the argument value
Public methodStatic member AssertState(Boolean, String) State assertion
Public methodStatic member AssertState(Boolean, String, Object[]) State assertion
Public methodStatic member NotNull(T)(Nullable(T), String) Ensures that arg != null
Public methodStatic member NotNull(T)(T, String) Ensures that arg != null
Public methodStatic member NotNullNorEmpty Ensures that arg is not null nor empty
  Back to Top

Fields

 

Name Description
Public fieldStatic member DebugCondition Conditional symbol for debug builds.
  Back to Top

See Also

Reference

CodeJam Namespace

Clone this wiki locally