C# String String(Char[]) Array
Description
String String(Char[])
initializes a new instance of
the String class to the value indicated by an array of Unicode characters.
Syntax
String.String(Char[])
has the following syntax.
public String(
char[] value
)
Parameters
String.String(Char[])
has the following parameters.
value
- An array of Unicode characters.
Example
/* w w w . ja va2s . co m*/
using System;
public class MainClass{
public static void Main(String[] argv){
System.Console.WriteLine(new String(new char[]{'a','b',}));
}
}
The code above generates the following result.