C# Console WriteLine(Char[], Int32, Int32)

Description

Console WriteLine(Char[], Int32, Int32) writes the specified subarray of Unicode characters, followed by the current line terminator, to the standard output stream.

Syntax

Console.WriteLine(Char[], Int32, Int32) has the following syntax.


[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void WriteLine(
  char[] buffer,/*  www .  j  a  v a2s . com*/
  int index,
  int count
)

Parameters

Console.WriteLine(Char[], Int32, Int32) has the following parameters.

  • buffer - An array of Unicode characters.
  • index - The starting position in buffer.
  • count - The number of characters to write.

Returns

Console.WriteLine(Char[], Int32, Int32) method returns

Example


/*from   w ww.  ja va 2 s. c om*/
using System;
public class MainClass{
  public static void Main(String[] argv){  
    System.Console.WriteLine(new char[]{'a'},0,2);
  }
}




















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