C# Console Write(Char[], Int32, Int32)
Description
Console Write(Char[], Int32, Int32)
writes the specified
subarray of Unicode characters to the standard output stream.
Syntax
Console.Write(Char[], Int32, Int32)
has the following syntax.
[HostProtectionAttribute(SecurityAction.LinkDemand, UI = true)]
public static void Write(
char[] buffer,/*from w ww . j a v a2s.c o m*/
int index,
int count
)
Parameters
Console.Write(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.Write(Char[], Int32, Int32)
method returns
Example
/*from ww w. ja v a 2 s .c o m*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(new char[]{'a'},0,2);
}
}