Debug.WriteLine C# with Example



Debug.WriteLine C# with Example

Writes to the trace listeners in the Listeners collection when the application is compiled in debug configuration. 
public static void Main(string[] args) 
{ 
Debug.WriteLine("Hello"); 
} 
In Visual Studio or Xamarin Studio this will appear in the Application Output window. This is due to the presence of 
the default trace listener in the TraceListenerCollection. 
 

0 Comment's

Comment Form

Submit Comment