how to write text in specific position in csharp

Code Example - how to write text in specific position in csharp

                
                        void WriteAt(int x, int y, string MessageText)
{
	int OldCursorX = System.Console.CursorLeft;
    int OldCursorY = System.Console.CursorTop;
    System.Console.SetCursorPosition(x, y);
    System.Console.Write(MessageText);
    System.Console.SetCursorPosition(OldCursorX, OldCursorY);
}

/*
WriteAt function is works like that example:
*/
WriteAt(10, 20, "HeLLo WoRlD!!");
/*
This is will send a message in the left-position:10 and the top-position:20 and the text is: "HeLLo WoRlD!!".
*/