how to clear console in c#

C#
Console.Clear();
Source

Also in C#: