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






Trace.Assert

  

using System;
using System.IO;
using System.Diagnostics;

class MainClass
{
  [STAThread]
  static void Main(string[] args)
  {
    int i = 0;

    Trace.Assert((i == 1), "My Trace Assertion");
  }
}

   
    
  








Related examples in the same category

1.Trace.Listeners
2.Trace.WriteLine
3.Trace.WriteLineIf