Debug.Assert : Debug « System.Diagnostics « C# / C Sharp by API






Debug.Assert

  
using System;
using System.Diagnostics;

using System.Collections;

using System.Data;
using System.Text;

public class MainClass{
   public static void Main(){
     Debug.Assert(1 == 0,"Error!","Error: 1 == 0");
   }
}  

   
    
  








Related examples in the same category

1.Debug.Fail
2.Debug.Listeners
3.Debug.WriteLine