Windows Phone Developers

Showing posts with label How to use NewLine Characters in C#. Show all posts
Showing posts with label How to use NewLine Characters in C#. Show all posts

Friday, January 2, 2009

Newline Characters in C#

How to use New Line Characters in C#

NewLine characters can be used in variables in the form of escape sequences (\n for the NewLine character) as shown below

Console.WriteLine("Name:\tPraveen Dhaggay\nAge:\t34\nOccupation:\tConsultant");

The output will be:


Digg Technorati Delicious StumbleUpon Reddit BlinkList Furl Mixx Facebook Google Bookmark Yahoo
ma.gnolia squidoo newsvine live netscape tailrank mister-wong blogmarks slashdot spurl StumbleUpon