It is possible to write only WriteLine instead of Console.WriteLine in C#?
Try using static directive:
using static System.Console;
...
WriteLine("some text");
Starting with C# 6.0, this is possible:
using static System.Console;
However, previous versions of C# do not have static imports.
You can use an Action
:
Action<string> WriteLine = (text) => Console.WriteLine(text);