C# Console WriteLine()

Description

Console WriteLine() writes the current line terminator to the standard output stream.

Syntax

Console.WriteLine() has the following syntax.


[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void WriteLine()

Returns

Console.WriteLine() method returns

Example


using System;/*from  w ww. j  a v a2s .c  o  m*/

public class Example
{
   public static void Main()
   {
      Console.WriteLine("With the default new line characters:");
      Console.WriteLine();
      Console.WriteLine();
      Console.WriteLine("With redefined new line characters:");
   }
}




















Home »
  C# Tutorial »
    System »




Array
BitConverter
Boolean
Byte
Char
Console
ConsoleKeyInfo
Convert
DateTime
DateTimeOffset
Decimal
Double
Enum
Environment
Exception
Guid
Int16
Int32
Int64
Math
OperatingSystem
Random
SByte
Single
String
StringComparer
TimeSpan
TimeZone
TimeZoneInfo
Tuple
Tuple
Tuple
Type
UInt16
UInt32
UInt64
Uri
Version