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);
}
}