Quick writeline

//Output with newline
public static void WriteLine(this object obj)
{
     System.Diagnostics.Debug.WriteLine(obj);
}

//Output without new line
public static void Write(this object obj)
{
     System.Diagnostics.Debug.Write(obj);
}
Example:
var x = "Example1";
x.WriteLine();

"Example2".WriteLine();

"Example".Write();
3.WriteLine();



//Output
Example1
Example2
Example3




Description

Write a variable to System.Diagnostics.Debug.WriteLine() (Or other output method)

Details

Double click on the code to select all.

 

;